Add support for Next.js 15
This commit is contained in:
parent
c01e142031
commit
22d95b7ffe
1 changed files with 4 additions and 1 deletions
5
index.js
5
index.js
|
@ -37,11 +37,14 @@ try {
|
||||||
}
|
}
|
||||||
async function init() {
|
async function init() {
|
||||||
try {
|
try {
|
||||||
|
var checkNodeDebugType = function() {return null};
|
||||||
|
if (nextServerUtil.getNodeDebugType) checkNodeDebugType = nextServerUtil.getNodeDebugType;
|
||||||
|
if (nextServerUtil.checkNodeDebugType) checkNodeDebugType = nextServerUtil.checkNodeDebugType;
|
||||||
initResponse = await routerServer.initialize({
|
initResponse = await routerServer.initialize({
|
||||||
dir: process.cwd(),
|
dir: process.cwd(),
|
||||||
port: port,
|
port: port,
|
||||||
dev: dev,
|
dev: dev,
|
||||||
isNodeDebugging: Boolean(nextServerUtil.checkNodeDebugType()) || false,
|
isNodeDebugging: Boolean(checkNodeDebugType()) || false,
|
||||||
startServerSpan: undefined,
|
startServerSpan: undefined,
|
||||||
experimentalHttpsServer: useHTTPS
|
experimentalHttpsServer: useHTTPS
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue