NASA-PDS / doi-ui

The web interface for the PDS DOI Service providing the ability management PDS archive DOIs. See the DOI Service for more details on the available capabilities. https://nasa-pds.github.io/doi-service/
Apache License 2.0
0 stars 4 forks source link

Add Editable Post Deployment Config File #63 #101

Closed eddiesarevalo closed 2 years ago

eddiesarevalo commented 2 years ago

There is now a config file public/config.js that can be edited post deployment to change the API endpoints.

-Added a config file that can be changed by an administrator post build and deployment. -The config file will be packaged with the build files. This can be changed with a normal text editor to point to a different API at any point post deployment.

eddiesarevalo commented 2 years ago

@tloubrieu-jpl You can test this by building the app then uploading the built files to a server or a local server.

There is a file called config.js in the built files that can you can open with a normal text editor or vi. You can change the end points to anywhere you would like. As default they are set to localhost:8085