vite.config.ts 421 B

1234567891011121314151617181920212223
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. plugins: [
  7. vue(),
  8. ],
  9. resolve: {
  10. alias: {
  11. '@': fileURLToPath(new URL('./src', import.meta.url))
  12. }
  13. },
  14. server: {
  15. host: '127.0.0.1',
  16. port: 4000,
  17. proxy: {
  18. '/api': 'http://localhost:8090'
  19. }
  20. }
  21. })