You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
488 B

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import path from 'path'
  4. // https://vite.dev/config/
  5. // export default defineConfig({
  6. // plugins: [vue()],
  7. // })
  8. export default defineConfig({
  9. plugins: [
  10. vue(),
  11. ],
  12. server: {
  13. proxy: {
  14. '/Api': {
  15. target: 'https://dbqb.nfdxy.net/devLotApi',
  16. // target: 'http://localhost:8080',
  17. changeOrigin: true,
  18. rewrite: (path) => path.replace(/^\/Api/, '')
  19. }
  20. }
  21. }
  22. })