From 9ada8f9d5f3e81ae4992547fbcb8292c3a0ef03d Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Sat, 17 Jan 2026 16:35:28 +0000 Subject: [PATCH] Generated by Spark: The usual culprit (90% probability) VITE_BASE_URL / VITE_PUBLIC_PATH (or equivalent) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Many templates do this in vite.config.ts: base: import.meta.env.VITE_BASE_URL, or: base: process.env.VITE_BASE_URL, If that variable: is undefined defaults to / or was set to http://localhost:5000 then Vite bakes the wrong paths into the JS bundles. nginx then serves files that point to nowhere → flaky load. --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index c86f510..633faa4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,6 +10,7 @@ const projectRoot = process.env.PROJECT_ROOT || import.meta.dirname // https://vite.dev/config/ export default defineConfig({ + base: './', plugins: [ react(), tailwindcss(),