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
Ondrej Rafaj edited this page Nov 9, 2018
·
3 revisions
Use
To get the correct server base url value access an extension on your request.
letbaseUrl:URL= req.serverURL()
Configuration
There are three ways to set a server base url which can be used for example for a link generation and similar.
The highest for of setting is a ENV (Environmental) variable. By setting APICORE_SERVER_URL to https://appstore.example.com you override any other solution listed below.
If ENV variable is not set, ApiCore will look into its config file, if none is defined than the default one placed in the root of the project.
Should the value be missing in the config file, a default value of http://localhost:8080 will be used.