Files
such.software/apps/web/next.config.js
T
such-gitea eb4c03c485 feat(products): add radiation.space, with /radiationspace as its short address
A product page for radiation.space (live at https://radiation.space): what it
does, where its numbers come from, its stated accuracy and privacy, and links to
the explorer and its wiki. The products grid lists it, and /radiationspace
redirects to the page; radiation.space's footer credit links there.
2026-11-16 22:10:06 -05:00

29 lines
914 B
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,
},
{
// the short address radiation.space's footer links to
source: "/radiationspace",
destination: "/products/radiation-space",
permanent: false,
},
];
},
};
module.exports = nextConfig;