Files
such.software/apps/web/next.config.js
such-gitea f8853cb1c7 fix(products): redirect Moon Launch and Bauhaus Echo privacy to their own sites
Each game's privacy policy now lives on its own marketing site and states
what the game stores today. The old pages predated sign-in, server
purchase validation and current analytics, so they redirect permanently
to moonlaunch.space/privacy/ and bauhausecho.com/privacy/, and product
and Terms links point there directly.
2026-11-16 22:55:25 -05:00

34 lines
1.1 KiB
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ["@repo/ui"],
// Inline the CSS into the HTML so the render-blocking stylesheet request leaves the
// critical path. That request was the LCP gate on throttled mobile: the logo (a data
// URI, ready instantly) couldn't paint until the separate CSS round-trip finished,
// and that round-trip varied run-to-run (TTFB 0, render delay ~2.3s). Inlined CSS
// arrives with the HTML, so the logo paints right away.
experimental: {
inlineCss: true,
},
async redirects() {
return [
{
source: "/links",
destination: "/apps",
permanent: true,
},
// Each game's privacy policy lives on its own site now.
{
source: "/products/such-moon-launch/privacy",
destination: "https://moonlaunch.space/privacy/",
permanent: true,
},
{
source: "/products/bauhaus-echo/privacy",
destination: "https://bauhausecho.com/privacy/",
permanent: true,
},
];
},
};
module.exports = nextConfig;