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

@@ -46,7 +46,7 @@ const nextConfig: NextConfig = {
// Image optimization
images: {
formats: ["image/webp", "image/avif"],
minimumCacheTTL: 60,
minimumCacheTTL: 2592000,
remotePatterns: [
{
protocol: "https",
@@ -169,7 +169,35 @@ const nextConfig: NextConfig = {
],
},
{
source: "/api/(.*)",
// Only prevent caching for real-time/sensitive API routes
source: "/api/n8n/(.*)",
headers: [
{
key: "Cache-Control",
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
},
],
},
{
source: "/api/auth/(.*)",
headers: [
{
key: "Cache-Control",
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
},
],
},
{
source: "/api/email/(.*)",
headers: [
{
key: "Cache-Control",
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
},
],
},
{
source: "/api/contacts/(.*)",
headers: [
{
key: "Cache-Control",