DEV Community

Discussion on: 4 Reasons Not To Use Environment Variables

Collapse
 
nombrekeff profile image
Keff • Edited

How are JSON files more secure than envs? It makes no sense to me.

Collapse
 
dillonb07 profile image
Dillon Barnes

You could make a good argument that JSON is worse as you can't add comments to organise your variables...

Collapse
 
bentorvo profile image
Ben Brazier

You can't add comments to envs?

Thread Thread
 
dillonb07 profile image
Dillon Barnes

You can. Use a pound sign (#)

Collapse
 
bentorvo profile image
Ben Brazier

They aren't, there is no meaningful difference in regards to security.