feat: init
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
import "#nitro-internal-pollyfills";
|
||||
export declare const __firebaseServerFunctionName__: any;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import "#nitro-internal-pollyfills";
|
||||
import { useNitroApp } from "nitropack/runtime";
|
||||
import { useAppConfig } from "nitropack/runtime";
|
||||
import functions from "firebase-functions/v1";
|
||||
import { toNodeListener } from "h3";
|
||||
const nitroApp = useNitroApp();
|
||||
const firebaseConfig = useAppConfig().nitro.firebase;
|
||||
export const __firebaseServerFunctionName__ = functions.region(firebaseConfig.region ?? functions.RESET_VALUE).runWith(firebaseConfig.runtimeOptions ?? functions.RESET_VALUE).https.onRequest(toNodeListener(nitroApp.h3App));
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import "#nitro-internal-pollyfills";
|
||||
export declare const __firebaseServerFunctionName__: import("firebase-functions/https").HttpsFunction;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import "#nitro-internal-pollyfills";
|
||||
import { useNitroApp } from "nitropack/runtime";
|
||||
import { useAppConfig } from "nitropack/runtime";
|
||||
import { onRequest } from "firebase-functions/v2/https";
|
||||
import { toNodeListener } from "h3";
|
||||
const nitroApp = useNitroApp();
|
||||
const firebaseConfig = useAppConfig().nitro.firebase;
|
||||
export const __firebaseServerFunctionName__ = onRequest(
|
||||
{
|
||||
// Must be set to public to allow all public requests by default
|
||||
invoker: "public",
|
||||
...firebaseConfig.httpsOptions
|
||||
},
|
||||
toNodeListener(nitroApp.h3App)
|
||||
);
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { __firebaseServerFunctionName__ } from "./firebase-gen-1";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { __firebaseServerFunctionName__ } from "./firebase-gen-1.mjs";
|
||||
Reference in New Issue
Block a user