From f3db4909a98688d32121051528fc3d4a1297e376 Mon Sep 17 00:00:00 2001 From: Lubomir Georgiev Date: Thu, 23 Jan 2025 14:59:30 +0200 Subject: [PATCH 1/3] 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/3] 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... From 9f71e638905be5087495c0f27726c9e9c2e75026 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 27 Jan 2025 09:07:08 +0100 Subject: [PATCH 3/3] fixup! create a "Community projects" section --- pages/cloudflare/_meta.json | 1 + pages/cloudflare/community.mdx | 31 +++++++++++++++++++++++++++++++ pages/cloudflare/examples.mdx | 27 --------------------------- 3 files changed, 32 insertions(+), 27 deletions(-) create mode 100644 pages/cloudflare/community.mdx diff --git a/pages/cloudflare/_meta.json b/pages/cloudflare/_meta.json index 8d0c8fa..a1ffc43 100644 --- a/pages/cloudflare/_meta.json +++ b/pages/cloudflare/_meta.json @@ -4,6 +4,7 @@ "bindings": "", "caching": "", "examples": "", + "community": "Community projects", "troubleshooting": "", "migrate-from-0.2": "", "0.2": "Release 0.2" diff --git a/pages/cloudflare/community.mdx b/pages/cloudflare/community.mdx new file mode 100644 index 0000000..212a898 --- /dev/null +++ b/pages/cloudflare/community.mdx @@ -0,0 +1,31 @@ +import { SITE } from '../../config'; +import { Callout } from 'nextra/components'; + +## Projects from the community + +### 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 + - 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 +- 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... diff --git a/pages/cloudflare/examples.mdx b/pages/cloudflare/examples.mdx index 69e8211..22c2ae3 100644 --- a/pages/cloudflare/examples.mdx +++ b/pages/cloudflare/examples.mdx @@ -23,30 +23,3 @@ 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 - - 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 -- 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...