智莺站长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.

преди 3 години
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. }