Full-stack Next.js 15 application with: - Landing page with marketing components (Hero, Testimonials, Pricing, FAQ) - Multi-step candidature form with API route - Stripe Checkout integration (subscription + webhooks) - Supabase Auth (login/register) with middleware protection - Dashboard with progress tracking and module system - Formations pages with completion tracking - Profile management with password change - Database schema with RLS policies - Resend email integration for transactional emails Stack: Next.js 15, TypeScript, Tailwind CSS v4, Supabase, Stripe, Resend https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
19 lines
435 B
TypeScript
19 lines
435 B
TypeScript
import { updateSession } from "@/lib/supabase/middleware";
|
|
import type { NextRequest } from "next/server";
|
|
|
|
export async function middleware(request: NextRequest) {
|
|
return await updateSession(request);
|
|
}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
// Routes protégées
|
|
"/dashboard/:path*",
|
|
"/formations/:path*",
|
|
"/profil/:path*",
|
|
// Routes auth (redirection si déjà connecté)
|
|
"/login",
|
|
"/register",
|
|
],
|
|
};
|