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,
|
startServerSpan: undefined,
|
||||||
experimentalHttpsServer: useHTTPS
|
experimentalHttpsServer: useHTTPS
|
||||||
});
|
});
|
||||||
handle = initResponse[0];
|
if (initResponse.requestHandler) {
|
||||||
|
handle = initResponse.requestHandler;
|
||||||
|
} else {
|
||||||
|
handle = initResponse[0];
|
||||||
|
}
|
||||||
isPrepared = true;
|
isPrepared = true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
nextError = err;
|
nextError = err;
|
||||||
|
|
Loading…
Reference in a new issue