- Migrate login page to atelier design system (editorial modal style) - Polish root error.tsx, not-found.tsx, loading.tsx with atelier design - Add JSON-LD structured data: SoftwareApplication + LocalBusiness - Fix next.config.ts outputFileTracingRoot absolute path warning - Add force-dynamic to protected-example (uses cookies) - Add proper type for stops page (replace : any) - Fix unescaped quotes in StopTableClient - Fix no-explicit-any in db-schema route - Clean up console.logs in admin-permissions - Fix inline any in admin/stops page - Update OG image references to existing og-default.svg
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { getSession, signOut } from "@/lib/auth";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
// `getSession()` reads cookies(), which forces dynamic rendering.
|
||||
// Without this, Next.js tries to prerender this page at build time
|
||||
// and fails with "Dynamic server usage".
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
/**
|
||||
* /protected-example
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user