From cdc9f927b52aa5a9c304b191ccdd0001e4b7131a Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 4 Jun 2026 13:32:55 -0700 Subject: [PATCH] Don't return 404, just return the index (some routes look like asset files since tlds look like file extensions) --- server.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server.js b/server.js index 738a6189..cafd4425 100644 --- a/server.js +++ b/server.js @@ -262,12 +262,6 @@ app.use( // SPA fallback for routes that don't match static files app.get("*", async context => { const requestUrl = requestUrlFromContext(context) - - // If the path has an extension, it's likely a missing static asset, not an SPA route - if (path.extname(requestUrl.pathname)) { - return context.text("Not found", 404) - } - const metadata = await getMetadataForRoute(requestUrl) const html = metadata ? injectMeta(metadata) : TEMPLATE_HTML