Where to put sensitive data files? #6985
Replies: 2 comments 3 replies
-
A |
Beta Was this translation helpful? Give feedback.
-
My two cents: Basically every modern deployment option provides one means or another to inject environment variables - from simple project settings to Kubernetes secrets. I typically don't deploy an .env file at all. Those are only for development. So just add them to your .gitignore and use the deployment specific way to inject environment variables. How are you deploying? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use a custom json file for storing things like cryptokeys and database urls and other sensitive stuff. Obviously it shouldn't be checked in, and I would rather not put it anywhere under 'src' to avoid confusion, but I can't seem to find a good place for it. If I leave it in the root project file, "npm run build" won't copy it over.
Beta Was this translation helpful? Give feedback.
All reactions