bettersight-statement-extra.../frontend/vite.config.js

15 lines
387 B
JavaScript

// Vite config - the /api proxy lets fetch('/api/...') work unchanged in
// dev against the Flask backend, same as it does in production where
// both are served from the same origin.
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
'/api': 'http://localhost:8091',
},
},
})