fix(client): eliminate ssr: false in Client Component and add safe WebGL exception handling to prevent client-side exception

This commit is contained in:
2026-11-03 13:46:51 +05:30
parent 8590608713
commit ea722c09be
3 changed files with 243 additions and 219 deletions
+1 -7
View File
@@ -2,17 +2,11 @@
import React from 'react';
import Link from 'next/link';
import dynamic from 'next/dynamic';
import { Sparkles, ArrowRight, Smartphone, ShieldCheck, Zap, Layers, Cpu } from 'lucide-react';
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
import { TryItWidget } from './TryItWidget';
import { TiltCard } from '@/components/ui/TiltCard';
// Lazy-load Three.js 3D canvas with ssr: false for ultra-fast initial load & SEO safety
const Hero3DCanvas = dynamic(
() => import('@/components/3d/Hero3DCanvas').then((mod) => mod.Hero3DCanvas),
{ ssr: false }
);
import { Hero3DCanvas } from '@/components/3d/Hero3DCanvas';
interface HeroSectionProps {
title?: any;