payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
25.61k stars 1.63k forks source link

build doesn't work #1599

Closed AdrianPrendas closed 1 year ago

AdrianPrendas commented 1 year ago
jmikrut commented 1 year ago

Hey @AdrianPrendas — we will need more information to help you here.

In production, Payload serves the contents of the /build folder statically via Express, so everything under /admin will first attempt to match to a file in /build, but if there is no file there, it will fall back to serving to /build/index.html.

In regards to deploying to production, we have a collection of tutorials that show how to deploy Payload to a DigitalOcean droplet here:

https://payloadcms.com/docs/production/deployment#digitalocean-tutorials

But you can deploy it to anywhere that can host a Node / Express app.

Here's another walkthrough for Northflank:

https://northflank.com/guides/deploying-payload-cms

I'm going to convert this to a discussion as it is not related to an issue with Payload but we are happy to continue to help there in the discussion!