Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
#Blank Website PayloadCMS Template?
1 messages · Page 1 of 1 (latest)
There is. Try going through that create-payload-app cli once again and you'll find that there is also a "blank" template, which has exactly what you're looking for
if you want to do it manually, you can see the code for it here:
https://github.com/payloadcms/payload/tree/main/templates/blank
Really? When i tried using that in the past, it wasen't a NextJS website that i could run.
Perhaps you're looking for something that is in-between the two?
The blank template doesn't render any pages. It's just a completely minimal setup of the CMS; a blank slate.
If you wanted to just subtract bit by bit of the website template, you should still be able to do that. I'd just try doing it in small chunks at a time, as you'd have to accept the drizzle prompts.
Another option if you remove a few items and you aren't concerned about any data loss, you can just run pnpm payload migrate:fresh and that'll wipe the database and start over based on the existing payload config that you have.
Can i just add the (frontend) directory, with the layout and page, to the blank template, and that'll work?
Or should i create a NextJS app, and then add PayloadCMS onto that?
Alright, i tried to create a NextJS app and then add Payload. When i run it, and go to /admin it says this. Internal error: Error: [object Object]
Start with the blank template, then create a frontend folder (frontend) and just begin adding things as necessary. You can use the website template in github as guidance on best practices here
I did that, but when i pnpm run dev and go to /admin it throws this error: Internal error: Error: [object Object]