19 lines
375 B
JavaScript
19 lines
375 B
JavaScript
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
root: '.',
|
|
server: {
|
|
host: true,
|
|
port: 4173,
|
|
proxy: {
|
|
// Forward API calls to the local Python API during dev so fetches
|
|
// return JSON instead of the Vite index.html shell.
|
|
'/api': 'http://127.0.0.1:4000',
|
|
},
|
|
},
|
|
preview: {
|
|
host: true,
|
|
port: 4173,
|
|
},
|
|
});
|