Stop replit from validating a .env file
h
wgyt

I know that env files are deprecated, but my program uses the .env file to store json data that can't be public. When I restart the repl it gets mad at me with an error, which I don't want to happen, because I can't run my program.

https://replit.com/@onedotprojects/onestate-server#index.js is my repl

You are viewing a single comment. View All
SixBeeps

Oh no no no no don't put JSON data in the .env, that's extremely janky. Set up a database to handle that.

wgyt

@SixBeeps it is intentional, the database writes to a file and I set it to use .env so it would be hidden