rank_backend/frontend/vite.config.js
2025-11-07 16:53:52 +08:00

27 lines
480 B
JavaScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
server: {
port: 5174,
proxy: {
'/api': {
target: 'http://159.75.150.210:8443',
changeOrigin: true,
secure: false
}
}
}
})