From f3db4909a98688d32121051528fc3d4a1297e376 Mon Sep 17 00:00:00 2001 From: Lubomir Georgiev Date: Thu, 23 Jan 2025 14:59:30 +0200 Subject: [PATCH 1/2] doc(cloudflare): Add a SaaS template to the examples page --- pages/cloudflare/examples.mdx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/pages/cloudflare/examples.mdx b/pages/cloudflare/examples.mdx index 22c2ae3..b9e12ad 100644 --- a/pages/cloudflare/examples.mdx +++ b/pages/cloudflare/examples.mdx @@ -23,3 +23,33 @@ You can use these to understand how to configure your Next.js app to use `@openn ### Next.js Commerce Demo The [Next.js Commerce demo app](https://github.com/vercel/commerce/tree/v1) works with `@opennextjs/cloudflare`. You can view a deployed version of it [here](https://vercel-commerce-on-workers.web-experiments.workers.dev/). + +### Fully-featured SaaS starter kit + +The [Cloudflare Workers SaaS template](https://github.com/LubomirGeorgiev/cloudflare-workers-nextjs-saas-template) is a fully-featured SaaS app that works with `@opennextjs/cloudflare` and utilizes lots of other Cloudflare services. +Here is a list of some of the features it includes: + +- Custom authentication with password and Google SSO + - Session storage in Cloudflare KV + - Drizzle ORM and Cloudflare D1 + - Forgot password + - Change password + - Change user settings +- Shadcn for the UI +- Light/Dark Theme +- Loading states and animations +- Toast alerts and notifications +- Landing page +- SEO optimization +- Protection with Cloudflare Turnstile Captcha +- Transactional email templates with react-email and integration with Resend and Brevo +- Rate Limiting with Cloudflare KV to prevent abuse +- Validation for all user actions with react-zsa and zod +- Completely type safe +- Comprehensive eslint config +- Integrated with Cursor AI +- .cursorrules +- A markdown project documentation that Cursor can refer to for more context and better responses +- Detailed documentation for local development and production deployment +- Automatic deployment using Github Actions and the Wrangler CLI +- And more... From f5ec8a16d05dbf76ba8bc4eeea837579753c4cc5 Mon Sep 17 00:00:00 2001 From: Lubomir Georgiev Date: Thu, 23 Jan 2025 20:23:48 +0200 Subject: [PATCH 2/2] doc(cloudflare): Shorten the features list of the SaaS template example --- pages/cloudflare/examples.mdx | 39 ++++++++++++++++------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/pages/cloudflare/examples.mdx b/pages/cloudflare/examples.mdx index b9e12ad..69e8211 100644 --- a/pages/cloudflare/examples.mdx +++ b/pages/cloudflare/examples.mdx @@ -30,26 +30,23 @@ The [Cloudflare Workers SaaS template](https://github.com/LubomirGeorgiev/cloudf Here is a list of some of the features it includes: - Custom authentication with password and Google SSO - - Session storage in Cloudflare KV - - Drizzle ORM and Cloudflare D1 - - Forgot password - - Change password - - Change user settings -- Shadcn for the UI -- Light/Dark Theme -- Loading states and animations -- Toast alerts and notifications -- Landing page -- SEO optimization -- Protection with Cloudflare Turnstile Captcha + - Session storage in Cloudflare KV + - Forgot password + - Change password + - Change user settings +- Security + - Protection with Cloudflare Turnstile Captcha + - Rate Limiting with Cloudflare KV to prevent abuse + - Validation for all user actions with react-zsa and zod +- Database: Drizzle ORM and Cloudflare D1 +- UI: Shadcn, Tailwind CSS and Hero UI (formely NextUI) - Transactional email templates with react-email and integration with Resend and Brevo -- Rate Limiting with Cloudflare KV to prevent abuse -- Validation for all user actions with react-zsa and zod -- Completely type safe -- Comprehensive eslint config -- Integrated with Cursor AI -- .cursorrules -- A markdown project documentation that Cursor can refer to for more context and better responses -- Detailed documentation for local development and production deployment -- Automatic deployment using Github Actions and the Wrangler CLI +- Dev Experience + - Completely type safe + - Comprehensive eslint config + - Integrated with Cursor AI + - .cursorrules + - A markdown project documentation that Cursor can refer to for more context and better responses + - Detailed documentation for local development and production deployment + - Automatic deployment using Github Actions and the Wrangler CLI - And more...