Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Routing fixes

Russ Garrett537dda8f4249
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 15069d5..0333929 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -24,6 +24,14 @@ export default defineConfig({
fs: {
// Allow serving files from one level up to the project root
allow: ['..']
+ },
+ proxy: {
+ '/stats': {
+ target: 'http://localhost:8000'
+ },
+ '/static': {
+ target: 'http://localhost:8000'
+ }
}
},
@@ -38,7 +46,7 @@ export default defineConfig({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
- navigateFallbackDenylist: [/^\/stats/, /^\/map/, /^\/fonts/]
+ navigateFallbackDenylist: [/^\/stats/, /^\/map/, /^\/fonts/, /^\/static/]
},
manifest: {
name: 'Open Infrastructure Map',