#Process env with Next.JS

7 messages · Page 1 of 1 (latest)

digital zenith
#

Hi there đź‘‹
I was wondering, why process.env dosn’t work with javascript?
I can give github repo if needed.
Thanks in advance

normal urchinBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

âś… You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

neon brambleBOT
# digital zenith Hi there 👋 I was wondering, why process.env dosn’t work with javascript? I can...
Please add more information to your question

Your question currently does not have sufficient information for people to be able to help. Please add more information to help us help you, for example: relevant code snippets, a reproduction repository, and/or more detailed error messages. See more info on how to ask a good question in https://discord.com/channels/752553802359505017/1138338531983491154 and #welcome message

digital zenith
#

alr,

if (process.env.NODE_ENV !== 'production') globalThis.prismaGlobal = prisma

for example sth like that

#

and i got problem, that process env is not defined

#

only when using java script

#

but when typescript, i dont have that problem