Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

Fix dynamic server error during build

Khuram Niaz91361fab4438
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index fabff7f..9158ad3 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -2,9 +2,10 @@ import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { cn } from "@/lib/utils";
-import dynamic from "next/dynamic";
+import dynamicImport from "next/dynamic";
+export const dynamic = "force-dynamic";
-const ThemeProvider = dynamic(
+const ThemeProvider = dynamicImport(
() => import("@/components/theme-provider").then((mod) => mod.ThemeProvider),
{
ssr: false,