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.

24 lines
538 B

4 weeks ago
1 month ago
3 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: '/prodBack/',
  6. plugins: [vue()],
  7. resolve: {
  8. alias: {
  9. '@': path.resolve(__dirname, './src')
  10. }
  11. },
  12. server: {
  13. proxy: {
  14. '/api': {
  15. target: 'https://hwjb.homilychart.com/prodApi/',
  16. // https://dbqb.nfdxy.net/devLotApi/
  17. // http://localhost:12699/
  18. changeOrigin: true,
  19. rewrite: (path) => path.replace(/^\/api/, '')
  20. },
  21. }
  22. }
  23. });