Ask coding questions

← Back to all posts
.env files
h
Suzaku (0)


Does anyone know how to fix this?

Answered by RoBlockHead (520) [earned 5 cycles]
View Answer
Comments
hotnewtop
RoBlockHead (520)

Go to the sidebar, there's an environment variable tab. That's where you set environment variables. You cannot use a .env file anymore

Coder100 (18101)


we now use this lock icon

the motivation was mostly so that people didn't have to spend any pain learning the syntax of .env files.

https://docs.replit.com/repls/secrets-environment-variables

Suzaku (0)

@Coder100 what is the key thing for?

19ecal (232)

@Coder100 the syntax isn't that painful

ch1ck3n (2042)

@Coder100 the env syntax is like the easiest thing to learn

Coder100 (18101)

the name of the secret @Suzaku

Coder100 (18101)

haha but so many people get it wrong @19ecal