Closed ludersGabriel closed 1 week ago
No, Heroku don't provide them. Instead, you need to manually read them from disks in files, as per in ./bin/compile
Ok, so there's actually a way I can export those env vars as per the docs. Try again now... does it work?
Hey! Thanks for replying. Couldn't try it yesterday, ended up using a procfile with the generate and seed on the release command. When I have the opportunity all try it out without it again!
Have a chance to try it out yet?
I'm going to assume this is fixed, but re open if not.
Hey! Are env variables not available during the heroku-prebuild step?
Even though they are there after the app goes live (i can see tem with printenv), when running the prebuild im getting a validation error cause they arent there.
This is my env configuration file with zod:
Very straight forward and works fine when the start script runs. Just the build that fails, I cant migrate and seed my db because of it. Here is my package.json with the commands:
The error I get is that DATABASE_URL and APP_SECRET are missing during the prebuild step. But they are in the console and show up with printenv once the app starts