DEV Community

Ali FELLAHI
Ali FELLAHI

Posted on • Updated on

Where should I store secret strings on Node server?

The common solution is to add a config.js.example file to version control (that contains empty/dummy values to document what's available).

Then you add config.js to .gitignore (or whatever suits your VCS).

To run your application you simply copy config.js.example to config.js and put in the proper values.

Of course the…

Top comments (0)