From 44742945d2a32a29f2fa7e6b241d8db313367c09 Mon Sep 17 00:00:00 2001 From: milesboydesign Date: Sun, 3 May 2026 23:02:54 +0000 Subject: [PATCH] Fix GeForce NOW 404 error by adding catch-all routes for /a/* and /d/* --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 8bb66c0f3..6771763ca 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,14 @@ routes.forEach(route => { res.sendFile(path.join(__dirname, "static", route.file)); }); }); +// Catch-all routes for proxied URLs - must come after specific routes +app.get("/a/*", (_req, res) => { + res.sendFile(path.join(__dirname, "static", "games.html")); +}); +app.get("/d/*", (_req, res) => { + res.sendFile(path.join(__dirname, "static", "tabs.html")); +}); app.use((req, res, next) => { res.status(404).sendFile(path.join(__dirname, "static", "404.html")); });