智莺站长PC端官网代码, vite-vue
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.

2 jaren geleden
2 jaren geleden
123456789101112131415161718
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. plugins: [vue()],
  6. server: {
  7. host: true,
  8. proxy: {
  9. '/api': {
  10. target: 'http://inapi.izhyin.cn/api',
  11. changeOrigin: true,
  12. rewrite: path => path.replace(/^\/api/, '')
  13. }
  14. },
  15. }
  16. })