mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
20 lines
559 B
TypeScript
20 lines
559 B
TypeScript
import { serve } from "bknd/adapter/nextjs";
|
|
|
|
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({
|
|
connection: {
|
|
type: "libsql",
|
|
config: {
|
|
url: "http://localhost:8080"
|
|
}
|
|
}
|
|
});
|