Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.env file is not seen by the other files #8

Closed
elifoz opened this issue Mar 23, 2021 · 4 comments
Closed

.env file is not seen by the other files #8

elifoz opened this issue Mar 23, 2021 · 4 comments

Comments

@elifoz
Copy link

elifoz commented Mar 23, 2021

Hi again! @maryamaljanabi I created a file named .env at the root but when I want to use .env variables I cant. The other files dont see the variables. Where am I doing mistake

@maryamaljanabi
Copy link
Owner

@elifoz Please post your error message.

@elifoz
Copy link
Author

elifoz commented Mar 24, 2021

@maryamaljanabi for example when I write secret: process.env.SESSION_SECRET in app.js the program accept secret undefined

@elifoz elifoz closed this as completed Mar 24, 2021
@elifoz elifoz reopened this Mar 24, 2021
@maryamaljanabi
Copy link
Owner

@elifoz are you sure you installed dotenv package? Because it works just fine for me.

@maryamaljanabi
Copy link
Owner

Closing because this is not an issue with the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants