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.

Question: Is there a recommended approach to split deployments?

default discord avatar
andwrobs2 years ago
2 1

Hi all,

Is there a recommended approach to split deployments, i.e. a separate deployment for Admin and API?

Approaches we've considered:

  • Use the disable properties for Admin and GraphQL (but we weren't sure how to disable the REST API...)
  • Disabling top level access on internal deployment

Use case:
My team wants to externally expose the Admin panel, but keep the API internal—because our app hits a service that pulls from the CMS internally (+ Cloud CDN caching).

  • Selected Answer
    discord user avatar
    jmikrut
    2 years ago

    Yes, you can—Payload's admin UI gets built to the build folder, and if you place all of those files on a separate host, you can deploy them separately. Just make sure you have the proper serverURL set, pointing at the backend API location, when you build the admin panel files. 👍

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.