minor fixes for nextjs

This commit is contained in:
dswbx
2025-03-03 07:10:32 +01:00
parent 09074f6591
commit 00f52eb096
6 changed files with 19 additions and 5 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
export const GET = async (req: Request) => {
return Response.json(process.env);
};