Bring config into server.

This commit is contained in:
William Welling
2017-03-24 16:48:43 -05:00
parent 99f936ff45
commit 415a52f011
7 changed files with 51 additions and 23 deletions

View File

@@ -4,12 +4,16 @@ module.exports = {
"rest": {
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
"nameSpace": "/api",
"baseURL": "http://localhost:3000"
"protocol": "http",
"address": "localhost",
"port": 3000
},
// Path and Port in use for this Angular2 UI
"ui": {
"nameSpace": "/",
"baseURL": "http://localhost:3000"
"protocol": "http",
"address": "localhost",
"port": 3000
},
"cache": {
// how long should objects be cached for by default
@@ -17,6 +21,8 @@ module.exports = {
},
"universal": {
//on the client: start with the state on the server
"shouldRehydrate": true
"shouldRehydrate": true,
"preboot": true,
"async": true
}
};