🛠️ Add proxy configuration for Gamemaster API in Vite config
This commit is contained in:
@@ -36,6 +36,13 @@ export default defineConfig({
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: path => path.replace(/^\/api\/oauth/, '/oauth'),
|
rewrite: path => path.replace(/^\/api\/oauth/, '/oauth'),
|
||||||
secure: false
|
secure: false
|
||||||
|
},
|
||||||
|
// Gamemaster API proxy
|
||||||
|
'/api/gamemaster': {
|
||||||
|
target: 'http://localhost:3001',
|
||||||
|
changeOrigin: true,
|
||||||
|
rewrite: path => path.replace(/^\/api\/gamemaster/, '/api/gamemaster'),
|
||||||
|
secure: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user