@harperdb/nextjs
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -262,3 +262,6 @@ import fs from 'node:fs'; | ||
const servers = options.server.http( | ||
(request) => { | ||
(request, nextHandler) => { | ||
if (config.subPath && !request._nodeRequest.url.startsWith(`/${config.subPath}/`)) { | ||
return nextHandler(request); | ||
} | ||
request._nodeRequest.url = config.subPath | ||
@@ -265,0 +268,0 @@ ? request._nodeRequest.url.replace(new RegExp(`^\/${config.subPath}\/`), '/') |
{ | ||
"name": "@harperdb/nextjs", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A HarperDB Component for running Next.js apps.", |
16464
285