Created
February 6, 2021 17:10
-
-
Save evild70/ba73de0ff99cfc6aa7b5c8da96275cde to your computer and use it in GitHub Desktop.
Vue config file
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
// Vue CLI uses http-proxy-middleware (https://github.com/chimurai/http-proxy-middleware#options) | |
// These are the options that worked for me. YMMV. | |
module.exports = { | |
devServer: { | |
port: 1337, | |
proxy: { | |
'^/': { | |
target: 'https://api.igdb.com/v4', | |
ws: true, | |
changeOrigin: true | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment