mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
fixed nextjs build + confirmed node adapter
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { serve } from "bknd/adapter/nextjs";
|
||||
import type { PageConfig } from "next";
|
||||
|
||||
export const config: PageConfig = {
|
||||
runtime: "edge"
|
||||
export const config = {
|
||||
runtime: "experimental-edge",
|
||||
// add a matcher for bknd dist to allow dynamic otherwise build may fail.
|
||||
// inside this repo it's '../../app/dist/index.js', outside probably inside node_modules
|
||||
// see https://github.com/vercel/next.js/issues/51401
|
||||
// and https://github.com/vercel/next.js/pull/69402
|
||||
unstable_allowDynamic: ["**/*.js"]
|
||||
};
|
||||
|
||||
export default serve({
|
||||
|
||||
Reference in New Issue
Block a user