Hello,
I am encountering an issue when deploying an application on Vercel, where the build process fails due to the APP_WEBHOOK_SECRET environment variable apparently not being recognized or found, despite being set.
Here's the error message I receive during deployment:
Error: MISSING APP_WEBHOOK_SECRET!
at 46379 (/vercel/path0/.next/server/app/astria/prompt-webhook/route.js:1:1562)
...
> Build error occurred
Error: Failed to collect page data for /astria/prompt-webhook
...
I have confirmed that the APP_WEBHOOK_SECRET is a randomly generated string (in this case, "yousayitsarandomstring?") as suggested in the documentation/README, and I've made sure to set it correctly in the project settings on Vercel.
Here are the steps I've taken to troubleshoot without success:
- Double-checked that the environment variable is set in the Vercel project settings.
- Ensured that the variable is being correctly referenced in the code using
process.env.APP_WEBHOOK_SECRET.
- Attempted to deploy with a simpler value for the environment variable to rule out issues with special characters.
- Reviewed the Vercel documentation and existing issues for any similar cases or additional configuration steps I might have missed.
I am wondering if there are any known issues with environment variable recognition during the build phase on Vercel, or if there are additional steps I need to take to ensure the environment variable is correctly passed and recognized by the build environment.
Any guidance or suggestions would be greatly appreciated.
Thank you!
Hello,
I am encountering an issue when deploying an application on Vercel, where the build process fails due to the
APP_WEBHOOK_SECRETenvironment variable apparently not being recognized or found, despite being set.Here's the error message I receive during deployment:
I have confirmed that the
APP_WEBHOOK_SECRETis a randomly generated string (in this case, "yousayitsarandomstring?") as suggested in the documentation/README, and I've made sure to set it correctly in the project settings on Vercel.Here are the steps I've taken to troubleshoot without success:
process.env.APP_WEBHOOK_SECRET.I am wondering if there are any known issues with environment variable recognition during the build phase on Vercel, or if there are additional steps I need to take to ensure the environment variable is correctly passed and recognized by the build environment.
Any guidance or suggestions would be greatly appreciated.
Thank you!