500 server error while trying to upload images

I found the env vars were not working. I tested out hardcoding them and it worked.

I’m thinking an npm package like dotenv might work better than env() syntax.