Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Deploying NextJS custom server template to Cloud

default discord avatar
gabe.algo2 years ago
5

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?



https://github.com/payloadcms/nextjs-custom-server
  • discord user avatar
    alessiogr
    2 years ago

    could you share the error you're getting?

  • default discord avatar
    gabe.algo2 years ago

    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)?

  • default discord avatar
    jessrynkar2 years ago

    Hey

    @249649086968496128

    - on the page before deployment, did you update the '

    Branch to deploy

    ' to master? It is set to

    main

    unless you change it - and the default branch for the

    nextjs-custom-server

    repo is named

    master

    .

  • default discord avatar
    markle57332 years ago

    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.

  • default discord avatar
    jessrynkar2 years ago

    Related thread here

    https://discord.com/channels/967097582721572934/1100794913790107648

    Our nextjs-custom-server template might need some tweaks to deploy on cloud, sounds like

    @967118574445547650

    is on the case 🔍

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.