🛠️ Add proxy configuration for Gamemaster API in Vite config

This commit is contained in:
2026-01-28 19:05:50 +00:00
parent c38d14a432
commit 57ac382c99

View File

@@ -36,6 +36,13 @@ export default defineConfig({
changeOrigin: true,
rewrite: path => path.replace(/^\/api\/oauth/, '/oauth'),
secure: false
},
// Gamemaster API proxy
'/api/gamemaster': {
target: 'http://localhost:3001',
changeOrigin: true,
rewrite: path => path.replace(/^\/api\/gamemaster/, '/api/gamemaster'),
secure: false
}
}
}