Files
buzz/next.config.ts
T
dmgnr 38fa0bc45b chore: upgrade Next.js 16.2.6 to 16.4.0
Move to the newer stable same-major release for current Next.js fixes and improvements. Update the pinned dependency and lockfile, align Bun and build configuration, and adjust compatibility changes in settings, health, error, donate, and rubgram routes.
2026-10-09 10:42:11 +00:00

57 lines
1.2 KiB
TypeScript
Executable File

import type { NextConfig } from "next";
export default {
/* config options here */
async rewrites() {
return [
{
source: "/i/static/:path*",
destination: "https://us-assets.i.posthog.com/static/:path*",
},
{
source: "/i/:path*",
destination: "https://us.i.posthog.com/:path*",
},
];
},
skipTrailingSlashRedirect: true,
images: {
remotePatterns: [
{
hostname: "gi.yatta.moe",
},
{
hostname: "cdn.dgnr.us",
},
{
hostname: "cdn.gunshiz.top",
},
{
hostname: "i.ytimg.com",
},
{
hostname: "cards.enka.network",
},
],
localPatterns: [
{ pathname: "/api/card/*" },
{ pathname: "/api/slip/*" },
{
pathname: "/cdn/*",
},
],
minimumCacheTTL: 86400,
},
experimental: {
agentUpgrade: "latest",
imgOptTimeoutInSeconds: 30,
typedEnv: true,
serverActions: { bodySizeLimit: "30mb" },
},
deploymentId: process.env.NEXT_DEPLOYMENT_ID,
// reactCompiler: true,
allowedDevOrigins: ["astral:3000", "dev3000.astrxl.dev", "nyx"],
// basePath: "/beta"
output: "standalone",
} satisfies NextConfig;