#Blank Website PayloadCMS Template?

1 messages · Page 1 of 1 (latest)

tulip nebulaBOT
true ivy
#

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

unkempt sapphire
#

Really? When i tried using that in the past, it wasen't a NextJS website that i could run.

true ivy
#

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.

unkempt sapphire
#

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?

unkempt sapphire
#

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]

molten shale
#

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

unkempt sapphire