Ask coding questions

← Back to all posts
.env file
XenonTNTmaniacG (0)

I see that Replit has updated some things to where I can no longer make .env files. How can I fix this by doing the Environment Variables? I don't know how to do that. I'm programming a discord bot and I was going to use a .env file for my bot token but cannot as they stopped doing that. What can I use for the Key and the Value for the Environment Variables?

Coder100 (18187)

The KEY is the name. The VALUE is the value.

If .env files still existed, here is how they would look:


They didnt remove the .env, you need to click on the lock on the side to set the key and value