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.
57 lines
1.2 KiB
TypeScript
Executable File
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;
|