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.

Hosting Next.js App and Payload separately on one server

default discord avatar
arskeliss2 years ago
4

Hello team,



I am following your advice on keeping Next app amd Payload on separate repos, but I am asking whether I will be able to make them work correctly if I host them together on one server?



Basically, my next app will be on

mydomain.com

and payload will be accessed through

mydomain.com/admin

. Would this work without developing them together in one repo?

  • default discord avatar
    generator1012 years ago

    Yes

  • default discord avatar
    minionwastaken2 years ago

    or you can host in subdomain. like.

    sub.mydomain.com/admin

    . thats how I'm doing

  • default discord avatar
    arskeliss2 years ago

    Thank you everyone!

  • default discord avatar
    s4chinlast year

    how are you managing cookie domain for login I mean when I separated it I started having issue setting http cookie on production

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.