mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
client: proxy requests to real api
This commit is contained in:
@@ -24,7 +24,13 @@ module.exports = {
|
|||||||
assetsSubDirectory: 'static',
|
assetsSubDirectory: 'static',
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: '/',
|
||||||
staticAssetsDirectory: staticAssetsDirectory,
|
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"
|
// CSS Sourcemaps off by default because relative paths are "buggy"
|
||||||
// with this option, according to the CSS-Loader README
|
// with this option, according to the CSS-Loader README
|
||||||
// (https://github.com/webpack/css-loader#sourcemaps)
|
// (https://github.com/webpack/css-loader#sourcemaps)
|
||||||
|
|||||||
Reference in New Issue
Block a user