智莺站长PC端官网代码, vite-vue
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vite.config.js 297 B

1234567891011121314
  1. const path = require('path')
  2. module.exports = {
  3. hostname: '0.0.0.0',
  4. port: 8080,
  5. // 反向代理
  6. proxy: {
  7. '/api': {
  8. target: 'https://inapi.izhyin.cn/api',
  9. changeOrigin: true,
  10. rewrite: path => path.replace(/^\/api/, '')
  11. }
  12. }
  13. }