perf: lazy-load ShaderGradient and fix image cache TTL

Co-authored-by: denshooter <44590296+denshooter@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-01 22:12:27 +00:00
parent 96d7ae5747
commit 3ac7c7a5b3
3 changed files with 50 additions and 18 deletions

View File

@@ -2,10 +2,15 @@ import "./globals.css";
import { Metadata } from "next";
import { Inter, Playfair_Display } from "next/font/google";
import React from "react";
import dynamic from "next/dynamic";
import ClientProviders from "./components/ClientProviders";
import { cookies } from "next/headers";
import { getBaseUrl } from "@/lib/seo";
import ShaderGradientBackground from "./components/ShaderGradientBackground";
const ShaderGradientBackground = dynamic(
() => import("./components/ShaderGradientBackground"),
{ ssr: false, loading: () => null }
);
const inter = Inter({
variable: "--font-inter",