nitro-nightly 3.0.1-20251118-173517-7eb23543 → 3.0.1-20251118-175529-0316c6c6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -311,7 +311,7 @@ async function configureViteDevServer(ctx, server) {
|
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
const nitroDevMiddleware = async (nodeReq, nodeRes, next) => {
|
|
314
|
-
if (/^\/@(?:vite|fs|id)\//.test(nodeReq.url) || nodeReq._nitroHandled) return next();
|
|
314
|
+
if (!nodeReq.url || /^\/@(?:vite|fs|id)\//.test(nodeReq.url) || nodeReq._nitroHandled || server.middlewares.stack.map((mw) => mw.route).some((base) => base && nodeReq.url.startsWith(base))) return next();
|
|
315
315
|
nodeReq._nitroHandled = true;
|
|
316
316
|
try {
|
|
317
317
|
const req = new NodeRequest({
|
package/package.json
CHANGED