Add support for Next.js 15

This commit is contained in:
Dorian Niemiec 2024-11-01 10:15:34 +01:00
parent c01e142031
commit 22d95b7ffe

View file

@ -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
});