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

Merged
merged 18 commits into from
Jan 28, 2025

Conversation

PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Jan 23, 2025

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

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-28 at 10 26 01 AM

Logged in:

Screenshot 2025-01-28 at 10 25 42 AM

Mobile:

Screenshot 2025-01-28 at 10 25 14 AM

@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!🔥

@PatrikKozak PatrikKozak merged commit e65a04a into main Jan 28, 2025
18 checks passed
@PatrikKozak PatrikKozak deleted the templates/blank-front-end branch January 28, 2025 16:39
Copy link
Contributor

🚀 This is included in version v3.20.0

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.

4 participants