From 22d95b7ffe7968dc93bc7c7719cf6c7558d8589a Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 1 Nov 2024 10:15:34 +0100 Subject: [PATCH] Add support for Next.js 15 --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 05cbd9a..1314092 100644 --- a/index.js +++ b/index.js @@ -37,11 +37,14 @@ try { } async function init() { try { + var checkNodeDebugType = function() {return null}; + if (nextServerUtil.getNodeDebugType) checkNodeDebugType = nextServerUtil.getNodeDebugType; + if (nextServerUtil.checkNodeDebugType) checkNodeDebugType = nextServerUtil.checkNodeDebugType; initResponse = await routerServer.initialize({ dir: process.cwd(), port: port, dev: dev, - isNodeDebugging: Boolean(nextServerUtil.checkNodeDebugType()) || false, + isNodeDebugging: Boolean(checkNodeDebugType()) || false, startServerSpan: undefined, experimentalHttpsServer: useHTTPS });