fix(nextjs-sdk): ensure nextjs sdk runs on next 15 #81

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-16 21:38:47 +01:00
parent 13f0c29fe3
commit cc983b3f62
4 changed files with 9 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
import { NextResponse } from 'next/server';
// adding .js next/script import fixes an issues
// with esm and nextjs (when using pages dir)
import { NextResponse } from 'next/server.js';
export function createNextRouteHandler({
apiUrl = 'https://api.openpanel.dev',