vue.config.js 374 B

123456789101112131415161718192021
  1. module.exports = {
  2. publicPath: "/",
  3. outputDir: '../dist',
  4. devServer: {
  5. port: 8008,
  6. proxy: {
  7. "/zd-api": {
  8. // target: "https://open.test.luojigou.vip",
  9. target: 'http://localhost:3000',
  10. ws: false,
  11. secure: false,
  12. changeOrigin: true,
  13. pathRewrite: {
  14. "^/zd-api": "",
  15. },
  16. },
  17. },
  18. },
  19. };