Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates: adds landing page to blank template #10769

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Jan 23, 2025

What

This update enhances the Blank template by adding a simple front-end to ensure a better out-of-the-box experience.

Why

When deploying the template to platforms like Payload Cloud, Vercel, or similar services, users would previously encounter a 404 or not-found page on the front-end / route unless explicitly handled.

With this update, the template now includes a minimal front-end that renders a basic page at route /.

Notes

  • The added front-end is entirely optional.

  • If users prefer to use the Blank template as a starting point for a back-end-only solution or plan to integrate with a different front-end framework, they can simply delete the (frontend) folder and proceed as before.

Logged out:

Screenshot 2025-01-24 at 3 32 28 PM

Logged in:

Screenshot 2025-01-24 at 3 33 00 PM

@sondreorland
Copy link
Contributor

sondreorland commented Jan 24, 2025

Could this have been a separate template? For example, blank-website, or perhaps a new template for the current blank one like blank-cms?

Many of us use Payload as a back-end-only solution in standalone projects, querying data via the REST API into other front-end frameworks (not always Next.js). The blank template is currently the only one without a website.

@PatrikKozak PatrikKozak changed the title templates: adds front-end to blank template templates: adds landing page to blank template Jan 24, 2025
@PatrikKozak
Copy link
Contributor Author

PatrikKozak commented Jan 24, 2025

Hey @sondreorland - thanks for the feedback!

We’ve added this front-end as a convenience for scenarios where someone decides to deploy this template on our cloud, vercel, or similar platforms. This ensures the front-end doesn’t display a not-found or 404 page by default.

If your plan is to use a different front-end framework or use Payload as a back-end-only solution, you can simply remove the (frontend) folder entirely and continue as before.

@sondreorland
Copy link
Contributor

The new changes you added makes more sense now, awesome!🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants