diff --git a/vite.config.ts b/vite.config.ts index 6124172..b66256e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,6 +22,10 @@ export default defineConfig({ }, workbox: { navigateFallback: '/index.html', + // Only apply the navigation fallback to the portal's own routes. + // App sub-paths (/notices/, /kitchen/, etc.) must reach nginx so + // the portal nginx can proxy them to the correct app container. + navigateFallbackAllowlist: [/^\/($|login|app\/|admin\/)/], globPatterns: ['**/*.{js,css,html,ico,png,svg}'], }, }),