AA周年庆后台前端
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.

22 lines
443 B

4 weeks ago
4 weeks ago
1 month ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. import { defineConfig } from 'vite';
  2. import vue from '@vitejs/plugin-vue';
  3. import path from 'path';
  4. export default defineConfig({
  5. base: '/testBack/',
  6. plugins: [vue()],
  7. resolve: {
  8. alias: {
  9. '@': path.resolve(__dirname, './src')
  10. }
  11. },
  12. server: {
  13. proxy: {
  14. '/api': {
  15. target: 'https://dbqb.nfdxy.net',
  16. changeOrigin: true,
  17. rewrite: (path) => path.replace(/^\/api/, '')
  18. },
  19. }
  20. }
  21. });