Files
pi-kit/pikit-web/vite.config.js
2025-12-10 18:51:31 -05:00

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,
},
});