Files
AI-interview-web/vite.config.js

27 lines
690 B
JavaScript
Raw Permalink Normal View History

2025-09-08 17:31:33 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2025-09-11 22:33:15 +08:00
import { fileURLToPath, URL } from 'node:url'
2025-09-08 17:31:33 +08:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
2025-09-11 22:33:15 +08:00
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
2025-09-08 17:31:33 +08:00
server: {
host: '0.0.0.0',
2025-10-10 18:04:59 +08:00
proxy: {
// Proxy API requests to the backend server
// '/api': {
2025-10-22 19:50:21 +08:00
// target: 'https://interview.qingqiu.online/api',
2025-10-10 18:04:59 +08:00
// changeOrigin: true, // Needed for virtual hosted sites
// secure: false, // Optional: if you are using https
// rewrite: (path) => path.replace(/^\/api/, ''),
// },
},
2025-09-08 17:31:33 +08:00
},
})