Created
June 8, 2021 06:18
-
-
Save artisandhq/82de9aaf26c773cce3f6348a17bfde2d to your computer and use it in GitHub Desktop.
Proxy Vue JS to server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
devServer: { | |
proxy: { | |
'^/api': { | |
target: 'http://localhost:8000', | |
changeOrigin: true, | |
secure: false, | |
pathRewrite: { | |
'^/api': '/api' | |
}, | |
logLevel: 'debug' | |
}, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment