AcademyRulesDevelopment

Next.js 15 and Supabase architecture Cursor rules

Development teams building Next.js 15 apps on Supabase who want Cursor to avoid common auth and routing mistakes.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/nextjs15-supabase-cursorrules-prompt-file.mdc -o .cursor/rules/nextjs15-supabase.mdc
nextjs15-supabase.mdc

Loading the file...

What it does

A Cursor rules file for Next.js 15 apps that use Supabase, strict TypeScript and shadcn/ui. It lists the tech stack and firm rules, such as verifying users on the server with getUser instead of getSession and awaiting params, which are Promises in Next.js 15.

Use cases

  1. 01Verify users server-side with getUser
  2. 02Await params and searchParams in pages
  3. 03Keep Stripe calls on the server only

Questions about
Next.js 15 and Supabase architecture Cursor rules.

What is Next.js 15 and Supabase architecture Cursor rules used for?

Development teams building Next.js 15 apps on Supabase who want Cursor to avoid common auth and routing mistakes. A Cursor rules file for Next.js 15 apps that use Supabase, strict TypeScript and shadcn/ui. It lists the tech stack and firm rules, such as verifying users on the server with getUser instead of getSession and awaiting params, which are Promises in Next.js 15.

How do I install Next.js 15 and Supabase architecture Cursor rules?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/nextjs15-supabase-cursorrules-prompt-file.mdc -o .cursor/rules/nextjs15-supabase.mdc

Is Next.js 15 and Supabase architecture Cursor rules open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Next.js 15 and Supabase architecture Cursor rules safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.