moving
Some checks failed
Installer Smoke / installer-smoke (push) Has been cancelled

This commit is contained in:
Oleg Maslov
2026-09-02 10:10:29 +02:00
commit 0c3e2ead3b
3841 changed files with 970576 additions and 0 deletions

28
apps/www/middleware.ts Normal file
View File

@@ -0,0 +1,28 @@
// Next.js 15.5.15 convention: middleware.ts
// Per Clerk skill version note + Next.js ≤15 docs, middleware.ts is the runtime-supported filename.
// Future Next.js 16+ canary will support proxy.ts as successor naming convention.
// Re-verify framework convention before any Next.js major version upgrade.
import { clerkMiddleware } from '@clerk/nextjs/server';
/**
* Clerk auth middleware.
*
* Default behavior: all routes are PUBLIC. Per-route protection is enforced
* with `await auth.protect()` inside Server Components / Route Handlers.
* Sign-up gating for Pro/Teams checkout is handled at CTA level via
* <SignUpButton mode="modal"> (see §5.4).
*/
export default clerkMiddleware();
export const config = {
matcher: [
// Keep public acquisition, legal, documentation, and download pages
// independent of Clerk session refreshes. Auth is required only where the
// route reads identity or owns an authenticated flow.
'/account(.*)',
'/sign-in(.*)',
'/sign-up(.*)',
'/(api|trpc)(.*)',
],
};