Created
March 4, 2019 15:33
-
-
Save linxinemily/152fbcce8d7fe45171d6f21b7b242aa6 to your computer and use it in GitHub Desktop.
This file contains 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
modules: [ | |
'bootstrap-vue/nuxt', | |
'@nuxtjs/axios', | |
'@nuxtjs/proxy' | |
], | |
axios: { | |
proxy: true, | |
prefix: '/api', | |
credentials: true, | |
}, | |
proxy: { | |
'/api': { | |
target: 'https://api.ranking.works/', | |
changeOrigin: true, | |
pathRewrite: { | |
'^/api': '', | |
}, | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment