mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-07 19:35:32 +00:00
client: proxy requests to real api
This commit is contained in:
parent
bde01c30ad
commit
ed1f0a04ae
2 changed files with 8 additions and 2 deletions
|
|
@ -24,7 +24,13 @@ module.exports = {
|
|||
assetsSubDirectory: 'static',
|
||||
assetsPublicPath: '/',
|
||||
staticAssetsDirectory: staticAssetsDirectory,
|
||||
proxyTable: {},
|
||||
proxyTable: {
|
||||
// proxy all requests starting with /api/v3 to localhost:3000
|
||||
'/api/v3': {
|
||||
target: 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
// CSS Sourcemaps off by default because relative paths are "buggy"
|
||||
// with this option, according to the CSS-Loader README
|
||||
// (https://github.com/webpack/css-loader#sourcemaps)
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ new Vue({ // eslint-disable-line no-new
|
|||
store,
|
||||
el: '#app',
|
||||
render: h => h(App),
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue