Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Separate config params for client and server #68

Open
artlowel opened this issue Apr 21, 2016 · 0 comments
Open

Separate config params for client and server #68

artlowel opened this issue Apr 21, 2016 · 0 comments

Comments

@artlowel
Copy link
Contributor

Now we have the GlobalConfig object in place, it might still be a good idea to inject some variables in it via webpack's DefinePlugin.

e.g. if the REST API is running on the same server, it is more efficient to use localhost in the REST API baseURL. But on the client it will only work if you use the server's hostname. Extracting that as a variable and injecting it at build time would allow us to end up with a different GlobalConfiguration object on client and server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant