diff --git a/prisma.config.ts b/prisma.config.ts index 8b22f3e..6c1a618 100644 --- a/prisma.config.ts +++ b/prisma.config.ts @@ -2,6 +2,5 @@ import 'dotenv/config' import { defineConfig } from 'prisma/config' export default defineConfig({ - earlyAccess: true, schema: './prisma/schema.prisma', }) diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 53f10cb..f4ce45c 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,7 +1,7 @@ import { MetadataRoute } from 'next'; -import { type Locale, i18n } from '@/components/internationalization/config'; +import { i18n } from '@/components/internationalization/config'; -const locales: Locale[] = i18n.locales; +const locales = i18n.locales; const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:3001'; // Define all your pages here diff --git a/src/components/chatbot/chat-button.tsx b/src/components/chatbot/chat-button.tsx index ed009fb..8a1d165 100644 --- a/src/components/chatbot/chat-button.tsx +++ b/src/components/chatbot/chat-button.tsx @@ -14,8 +14,8 @@ export function ChatButton({ dictionary }: ChatButtonProps) { const [shouldInvert, setShouldInvert] = useState(false); - const checkTimeoutRef = useRef(); - const rafRef = useRef(); + const checkTimeoutRef = useRef(null); + const rafRef = useRef(null); useEffect(() => { const checkSections = () => { diff --git a/src/components/marketing/pricing/sections/features.tsx b/src/components/marketing/pricing/sections/features.tsx index 797f651..1b50b15 100644 --- a/src/components/marketing/pricing/sections/features.tsx +++ b/src/components/marketing/pricing/sections/features.tsx @@ -20,7 +20,8 @@ export default function Features() {
{features.map((feature) => { - const Icon = Icons[feature.icon || "nextjs"]; + const iconKey = (feature.icon || "nextjs") as keyof typeof Icons; + const Icon = Icons[iconKey]; return (
- {currentLanguage?.nativeName || currentLanguage?.name} + {currentLanguage?.nativeName} diff --git a/src/components/ui/optimized-image.tsx b/src/components/ui/optimized-image.tsx index 51047cb..b9000d5 100644 --- a/src/components/ui/optimized-image.tsx +++ b/src/components/ui/optimized-image.tsx @@ -15,6 +15,7 @@ interface OptimizedImageProps extends ComponentProps<'img'> { priority?: boolean; placeholder?: 'blur' | 'empty'; blurDataURL?: string; + quality?: number; } export function OptimizedImage({ diff --git a/src/components/wizard/branding/actions.ts b/src/components/wizard/branding/actions.ts index e235c8f..48f515b 100644 --- a/src/components/wizard/branding/actions.ts +++ b/src/components/wizard/branding/actions.ts @@ -28,7 +28,7 @@ export async function updateBranding( if (error instanceof z.ZodError) { return { success: false, - error: error.errors[0]?.message || "Validation failed", + error: error.issues[0]?.message || "Validation failed", }; }