#Directory structure for Next.js app and PayloadCMS?

4 messages · Page 1 of 1 (latest)

winged narwhal
#

Hello team,
My question is that is it a working way to install Next.js as the frontend and Payload as backend in the same idrectory, along-side one another? Or should I just keep them in separate folders, but inside one, main folder?

How do you guys do it normally, the way it works nice and dandy?

north sequoia
#

Check their github, they have a nextjs project combined with payload template there 🙂

left abyss
#

This matters on the project really. We prefer to keep the frontend and backend in separate repos, adn therefore allows easier separate deployments. However, as mentioned above, we do have an example with them combined here: https://github.com/payloadcms/nextjs-custom-server

GitHub

A TypeScript boilerplate for combining Payload and NextJS into a single Express server - GitHub - payloadcms/nextjs-custom-server: A TypeScript boilerplate for combining Payload and NextJS into a s...

exotic oriole