chore: release Next.js integration 1.1.0
This commit is contained in:
parent
8be1f19251
commit
ef4d468931
2 changed files with 7 additions and 4 deletions
9
index.js
9
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
|
||||||
});
|
});
|
||||||
|
@ -90,14 +93,14 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd,
|
||||||
try {
|
try {
|
||||||
if (nextError) throw nextError;
|
if (nextError) throw nextError;
|
||||||
if (!isPrepared) {
|
if (!isPrepared) {
|
||||||
callServerError(503, "nextjs-integration/1.0.0");
|
callServerError(503, "nextjs-integration/1.1.0");
|
||||||
serverconsole.errmessage("Next.js application not yet fully loaded.");
|
serverconsole.errmessage("Next.js application not yet fully loaded.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await handle(req, res);
|
await handle(req, res);
|
||||||
serverconsole.resmessage("Next.js request successfully processed.");
|
serverconsole.resmessage("Next.js request successfully processed.");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
callServerError(500, "nextjs-integration/1.0.0", err);
|
callServerError(500, "nextjs-integration/1.1.0", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"name": "Next.js integration for SVR.JS",
|
"name": "Next.js integration for SVR.JS",
|
||||||
"version": "1.0.0"
|
"version": "1.1.0"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue