fix: fix internal server error with Next.js 15.1

This commit is contained in:
Dorian Niemiec 2025-01-05 14:53:21 +01:00
parent 67de056a7c
commit c63f9d8d59

View file

@ -48,7 +48,11 @@ try {
startServerSpan: undefined, startServerSpan: undefined,
experimentalHttpsServer: useHTTPS experimentalHttpsServer: useHTTPS
}); });
if (initResponse.requestHandler) {
handle = initResponse.requestHandler;
} else {
handle = initResponse[0]; handle = initResponse[0];
}
isPrepared = true; isPrepared = true;
} catch (err) { } catch (err) {
nextError = err; nextError = err;