From ef4d4689318b08111a51237e00beefd8dd026eef Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 1 Nov 2024 10:19:23 +0100 Subject: [PATCH] chore: release Next.js integration 1.1.0 --- index.js | 9 ++++++--- mod.info | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 05cbd9a..1d71818 100644 --- a/index.js +++ b/index.js @@ -37,11 +37,14 @@ try { } async function init() { try { + var checkNodeDebugType = function() {return null}; + if (nextServerUtil.getNodeDebugType) checkNodeDebugType = nextServerUtil.getNodeDebugType; + if (nextServerUtil.checkNodeDebugType) checkNodeDebugType = nextServerUtil.checkNodeDebugType; initResponse = await routerServer.initialize({ dir: process.cwd(), port: port, dev: dev, - isNodeDebugging: Boolean(nextServerUtil.checkNodeDebugType()) || false, + isNodeDebugging: Boolean(checkNodeDebugType()) || false, startServerSpan: undefined, experimentalHttpsServer: useHTTPS }); @@ -90,14 +93,14 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd, try { if (nextError) throw nextError; 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."); return; } await handle(req, res); serverconsole.resmessage("Next.js request successfully processed."); } catch (err) { - callServerError(500, "nextjs-integration/1.0.0", err); + callServerError(500, "nextjs-integration/1.1.0", err); } } } diff --git a/mod.info b/mod.info index 8a03600..db15749 100755 --- a/mod.info +++ b/mod.info @@ -1,4 +1,4 @@ { "name": "Next.js integration for SVR.JS", - "version": "1.0.0" + "version": "1.1.0" }