You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: