19 lines
458 B
JavaScript
19 lines
458 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
proxy: {
|
|
// Proxy API requests to the backend server
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true, // Needed for virtual hosted sites
|
|
secure: false, // Optional: if you are using https
|
|
},
|
|
},
|
|
},
|
|
})
|