diff --git a/next.config.ts b/next.config.ts index eaadfdb..df2568c 100644 --- a/next.config.ts +++ b/next.config.ts @@ -34,6 +34,15 @@ const nextConfig: NextConfig = { source: "/api/:path*", headers: [{ key: "Cache-Control", value: "no-store, max-age=0" }], }, + { + source: "/models/:path*", + headers: [ + { + key: "Cache-Control", + value: "public, max-age=31536000, immutable", + }, + ], + }, ]; }, }; diff --git a/public/models/airplane.glb b/public/models/airplane.glb new file mode 100644 index 0000000..f096201 Binary files /dev/null and b/public/models/airplane.glb differ diff --git a/src/app/globals.css b/src/app/globals.css index aadf696..b134686 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -36,6 +36,7 @@ html, body { height: 100%; + height: 100dvh; margin: 0; padding: 0; overflow: hidden; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 9eff7f6..81d2cee 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -61,6 +61,10 @@ export default function RootLayout({ return (
+ {GA_ID && /^G-[A-Z0-9]+$/.test(GA_ID) && ( <>