From d713f7f5ef7fc4e2b7137539ffe65872c2ddebfd Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Feb 2026 14:28:57 +0000 Subject: [PATCH] fix: downgrade Next.js 16 to 15 for Vercel deployment compatibility Next.js 16.1.6 is not yet fully supported by Vercel's build system, causing 404 on all routes. Downgraded to Next.js 15.5.12 + React 18, fixed ESLint config, TypeScript config, and lint errors. https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y --- .../formations/[moduleId]/page.tsx | 9 +- app/globals.css | 2 +- eslint.config.mjs | 28 +- lib/utils.ts | 4 +- package-lock.json | 673 +++--------------- package.json | 13 +- tsconfig.json | 6 +- 7 files changed, 136 insertions(+), 599 deletions(-) diff --git a/app/(protected)/formations/[moduleId]/page.tsx b/app/(protected)/formations/[moduleId]/page.tsx index 39e9540..6fb97d8 100644 --- a/app/(protected)/formations/[moduleId]/page.tsx +++ b/app/(protected)/formations/[moduleId]/page.tsx @@ -1,3 +1,4 @@ +import Link from "next/link"; import { redirect } from "next/navigation"; import { createClient } from "@/lib/supabase/server"; import Card from "@/components/ui/Card"; @@ -40,12 +41,12 @@ export default async function ModulePage({ params }: ModulePageProps) {
{/* Breadcrumb */}