diff --git a/code/websites/pokedex.online/vite.config.js b/code/websites/pokedex.online/vite.config.js index cfdf7fa..f6d92a0 100644 --- a/code/websites/pokedex.online/vite.config.js +++ b/code/websites/pokedex.online/vite.config.js @@ -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 } } }