vue.config.js 481 B

1234567891011121314151617181920212223
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. devServer: {
  5. port: 8082,
  6. proxy: {
  7. '/api': {
  8. target: 'http://localhost:8080/api',
  9. changeOrigin: true,
  10. pathRewrite: {
  11. '^/api': ''
  12. }
  13. },
  14. '/auth': {
  15. target: 'http://localhost:8083',
  16. changeOrigin: true,
  17. pathRewrite: {
  18. '^/auth': '/auth'
  19. }
  20. }
  21. }
  22. }
  23. })