Created
August 7, 2018 08:03
-
-
Save rightson/7ad12bb8fc5582760eaf8d7f79d437fa to your computer and use it in GitHub Desktop.
vuel-cli 3.x proxy setting (different from 2.x's proxyTable setting)
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/api', | |
changeOrigin: true, | |
ws: true, | |
pathRewrite: { | |
'^/api': '' | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment