fix(client): eliminate ssr: false in Client Component and add safe WebGL exception handling to prevent client-side exception
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user