Question: Is there a recommended approach to split deployments?

default discord avatar
11 months 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).

  • discord user avatar
    Payload Team
    7 months 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. 👍

Open the post
Continue the discussion in GitHub
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.