Skip to content

Commit 0f72d4a

Browse files
committed
Add Nitro
1 parent aa62d56 commit 0f72d4a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/nitro/firebase-aware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './index.js';

src/nitro/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { Request } from 'firebase-functions/v2/https';
2+
import type { Response } from 'express';
3+
4+
const nuxt = import("nitro-output/index.mjs" as any);
5+
6+
export const handle = async (req: Request, res: Response) => {
7+
const { handler } = await nuxt;
8+
handler(req, res);
9+
};

0 commit comments

Comments
 (0)