aboutsummaryrefslogtreecommitdiff
path: root/config/index.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-10-27 18:01:33 +0200
committerRoger Braun <roger@rogerbraun.net>2016-10-27 18:01:33 +0200
commiteb9873ac747932d6a7dcbf9233eecc57bde43d8b (patch)
tree2eff3d16a2974a717283a4c0cab4430a5b4afa97 /config/index.js
parent4c2764c747f1480ee7752e43357663f3c321f571 (diff)
Add proxied routes.
Diffstat (limited to 'config/index.js')
-rw-r--r--config/index.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/index.js b/config/index.js
index 207dfbd4..fdfac8b2 100644
--- a/config/index.js
+++ b/config/index.js
@@ -21,7 +21,18 @@ module.exports = {
port: 8080,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
- proxyTable: {},
+ proxyTable: {
+ '/api': {
+ target: 'https://social.heldscal.la/',
+ changeOrigin: true,
+ cookieDomainRewrite: 'localhost'
+ },
+ '/main': {
+ target: 'https://social.heldscal.la/',
+ changeOrigin: true,
+ cookieDomainRewrite: 'localhost'
+ }
+ },
// 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)