fix: fix internal server error with Next.js 15.1
This commit is contained in:
parent
67de056a7c
commit
c63f9d8d59
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
@ -48,7 +48,11 @@ try {
|
|||
startServerSpan: undefined,
|
||||
experimentalHttpsServer: useHTTPS
|
||||
});
|
||||
handle = initResponse[0];
|
||||
if (initResponse.requestHandler) {
|
||||
handle = initResponse.requestHandler;
|
||||
} else {
|
||||
handle = initResponse[0];
|
||||
}
|
||||
isPrepared = true;
|
||||
} catch (err) {
|
||||
nextError = err;
|
||||
|
|
Loading…
Reference in a new issue