Update Next.js configuration for standalone output; add type checking script to package.json; enhance Prisma schema with binary targets; modify authentication API to only require email; improve evaluation detail page with Link component; add ESLint directive in new evaluation page; adjust theme provider for state setting; refine export-utils test type assertion.

This commit is contained in:
Julien Froidefond
2026-02-20 09:35:22 +01:00
parent 9fcceb2649
commit 678517aee0
15 changed files with 149 additions and 10 deletions

View File

@@ -20,8 +20,10 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
const stored = localStorage.getItem("theme") as Theme | null;
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
const initial = stored ?? (prefersDark ? "dark" : "light");
setThemeState(initial);
setMounted(true);
queueMicrotask(() => {
setThemeState(initial);
setMounted(true);
});
}, []);
useEffect(() => {