Closed lzy7071 closed 4 years ago
The REST API endpoint is controlled via the .env*
files.
To use testapi.datanator.info, the NODE_ENV
environment variable should be set to test
or development
. This should be set when the "preview" sites are deployed.
Got it.
What about for production
server?
NODE_ENV=production
maps to the configuration in the .env
file. Under production mode, the frontend will use api.datanator.info.
Example