#Weird build issue on prod

14 messages · Page 1 of 1 (latest)

lavish briar
#

Hello team! I'm building our payload site for prod, getting this weird build error. I think it's related to my dotenv?

velvet granite
#

whats your full payload config file?

lavish briar
#

so we're thinking the dotenv is getting bundled in the frontend of the admin

#

not sure why

#

SOLVED:

#

Was using dotenv in a collection config by mistake

#

wait not solved

#

@compact goblet Any reason why building payload for prod would keep giving me an error about dotenv

#

I'm using it in my payload.config.ts

#

And for some reason it fails at the .config command on dotenv require

#

@velvet granite This was the error on local btw

#

WAIT

#

I'm a dummy