I tried deploying the
payloadcms/nextjs-custom-server
template to the cloud, but I'm getting a build error. I understand it's currently supported - is there a trick I'm missing?
could you share the error you're getting?
it's failing during the first build, unless I'm missing something I'm not able to see the logs.
I might be setting the wrong environment variables? Also after this process fails, is there a way to re-trigger builds (ie after updating env vars)?
Hey @gabe.algo - on the page before deployment, did you update the '
Branch to deploy' to master? It is set to
mainunless you change it - and the default branch for the
nextjs-custom-server
repo is named
master.
Even when selecting the correct branch to deploy, the build fails.
Build logs shows that it gets pretty far, but the build shows as failed.
Related thread here
https://discord.com/channels/967097582721572934/1100794913790107648Our nextjs-custom-server template might need some tweaks to deploy on cloud, sounds like @denolfe is on the case 🔍
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.