Files

15 lines
324 B
TypeScript
Raw Permalink Normal View History

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
resolve: { alias: { '@': path.resolve('src') } },
server: {
port: 3000,
proxy: {
'/api': { target: 'http://localhost:8080', changeOrigin: true }
}
}
})