Skip to content
Discussion options

You must be logged in to vote

I figured it out... I still had dotenv installed, which I guess was preventing next from loading the env variables. After removing dotenv with npm r dotenv everthing works as expected :)

next console output

ready - started server on http://localhost:3000
info  - Loaded env from .env
event - build page: /test
wait  - compiling...
event - compiled successfully
variable: hello

Replies: 16 comments 31 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@jamesmosier
Comment options

@nifte
Comment options

@jamesmosier
Comment options

@nifte
Comment options

@averyfreeman
Comment options

Comment options

You must be logged in to vote
6 replies
@phoenixeliot
Comment options

@motdotla
Comment options

@bonesoul
Comment options

@OZZlE
Comment options

@Elvis557
Comment options

Answer selected by nifte
Comment options

You must be logged in to vote
1 reply
@motdotla
Comment options

Comment options

You must be logged in to vote
5 replies
@samuelhnrq
Comment options

@samput
Comment options

@samuelhnrq
Comment options

@lleseg
Comment options

@gerarddegas
Comment options

Comment options

You must be logged in to vote
2 replies
@einSelbst
Comment options

@vincent1114
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@motdotla
Comment options

Comment options

You must be logged in to vote
3 replies
@matheusrgarcia
Comment options

@AIEAJN
Comment options

@AIEAJN
Comment options

Comment options

You must be logged in to vote
3 replies
@Disorrder
Comment options

@duyhunter1001
Comment options

@motdotla
Comment options

Comment options

You must be logged in to vote
1 reply
@TristonWasik
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@luizfelmach
Comment options

@heatherdg
Comment options

@rvdende
Comment options

@duc-hoang-161
Comment options

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