mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
minor fixes for nextjs
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import { getApp } from "@/bknd";
|
||||
|
||||
// if you're not using a local media adapter, or file database,
|
||||
// you can uncomment this line to enable running bknd on edge
|
||||
// export const runtime = "edge";
|
||||
|
||||
const handler = async (request: Request) => {
|
||||
const app = await getApp();
|
||||
return app.fetch(request);
|
||||
|
||||
3
examples/nextjs/src/app/env/route.ts
vendored
Normal file
3
examples/nextjs/src/app/env/route.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export const GET = async (req: Request) => {
|
||||
return Response.json(process.env);
|
||||
};
|
||||
Reference in New Issue
Block a user