vue.config.js 580 B

1234567891011121314151617181920212223242526
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. devServer: {
  5. port: 8080,
  6. proxy: {
  7. '/proxy_proxy/': {
  8. target: 'http://121.43.55.7:10011/proxy',
  9. // target: 'http://127.0.0.1:10093',
  10. changeOrigin: true,
  11. secure: false,
  12. pathRewrite: {
  13. '^/proxy_proxy': ''
  14. }
  15. },
  16. '/oauth/': {
  17. target: 'http://121.43.55.7:10086/oauth',
  18. changeOrigin: true,
  19. pathRewrite: {
  20. '^/oauth': ''
  21. }
  22. },
  23. }
  24. }
  25. })