chore(fe): vite dev proxy for local FastAPI (dev-only, not in Docker build)
This commit is contained in:
@@ -5,4 +5,11 @@ import sveltePreprocess from 'svelte-preprocess';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [svelte({ preprocess: sveltePreprocess() })],
|
plugins: [svelte({ preprocess: sveltePreprocess() })],
|
||||||
worker: { format: 'es' },
|
worker: { format: 'es' },
|
||||||
|
server: {
|
||||||
|
port: 5173,
|
||||||
|
proxy: {
|
||||||
|
// Local dev: route API calls to the FastAPI backend (mock-safe).
|
||||||
|
'/api': { target: 'http://127.0.0.1:18081', changeOrigin: true }
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user