Hello team! I'm building our payload site for prod, getting this weird build error. I think it's related to my dotenv?
whats your full payload config file?
so we're thinking the dotenv is getting bundled in the frontend of the admin
not sure why
Was using dotenv in a collection config by mistake
wait not solved
@jmikrut 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
@noheadphones This was the error on local btw
I'm a dummy
taking it out worked
Get help straight from the Payload team with an Enterprise License.