#Env vars not present in NextJS App

35 messages · Page 1 of 1 (latest)

willow emberBOT
#

Project ID: N/A

abstract isleBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

rotund verge
#

f7a30355-d5eb-466b-95c4-2513c169a159

#

I'm not an expert on NextJS, so if I'm doing something wrong just let me know :) I'm not the frontend guy lol

primal cliff
#

Best to start a new thread since this one was already answered and technically closed

rotund verge
#

my bad @primal cliff I searched but didn't find it - do you have the link?

primal cliff
#

A new #1006629907067064482 thread.

rotund verge
primal cliff
#

Oh dang! My bad! 🤣🤣 reading while working isn’t conducive to helping

rotund verge
#

lmao

primal cliff
#

You are not trying to utilize the environment variables during build are you? I’m not too familiar with NextJS. Been messing with it lately, but nothing too major.

#

I only ask because it’s failing at build, and not deploy

rotund verge
#

I just set them through Railway

primal cliff
#

That’s strange. They should be injected into the built container

rotund verge
#

just in case: this repo doesn't have any .env file

rotund verge
primal cliff
#

I hate to do it to you, but have you tried deploying it to a new service, just in case?

rotund verge
primal cliff
#

Yeah, if it does, then try adding yours to it

rotund verge
primal cliff
#

Hmmmm… okay.

#

I’ll flag the team, hopefully it isn’t a major issue, and it’s just something with your project

rotund verge
#

hopefully yes!

willow emberBOT
#

Flagging this thread. A team member will be with you shortly.

rotund verge
#

thanks a lot man, you guys are always answering sooo quick, that's really amazing

#

FUCK I DELETED THE MESSAGE TRYING TO REMOVE A REPEATED SCREENSHOT

#

no way hahaha

primal cliff
#

🤦‍♂️

rotund verge
#

will rewrite it in the first comment, my bad

meager wolfBOT
#

You need to pass them in via ARG.

primal cliff
#

This is why I don’t use docker files

gleaming viper
#

as I'm scrolling down, in my head I'm like did you define them as ARG's and then I see the team flag and then Angelo said the same thing I was saying in my head

primal cliff