Closed reeaazz closed 9 months ago
Not NextAuth.js related. From the error it sounds like const users: UsersListType = JSON.parse(process.env.USERS || "[]");
throws because your env variable is not valid JSON. I recommend wrapping it in a try catch and handle parsing errors properly.
Environment
Trying to Deploy on the AWS Beanstalk
Reproduction URL
https://github.com/NHSDigital/Galleri-Frontend
Describe the issue
Getting this Error logs when trying to deploy it on the Elastic Beanstalk
How to reproduce
This is my Route.ts file:
Expected behavior
Expected to build fine but facing this error during build.