Admin route when not using serverless

default discord avatar
nlvogel
2 months ago
3

When hosting PayloadCMS (Railway) and my front end (Vercel) separately, how do you all set the admin UI to mysite.com/admin? Does serverUrl take care of that?

  • default discord avatar
    paulpopus
    2 months ago

    Yep! serverUrl is a config for the frontend of payload itself

  • default discord avatar
    nlvogel
    2 months ago

    Thank you!

  • default discord avatar
    paulpopus
    2 months ago

    Make sure you set

    cors

    and

    csrf

    configs as well, usually the forgotten ones in deployment! @nlvogel

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

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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