34 lines
834 B
TypeScript
34 lines
834 B
TypeScript
import type { NextConfig } from "next";
|
|
import { resolve } from "node:path";
|
|
|
|
const nextConfig: NextConfig = {
|
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH?.trim() || undefined,
|
|
cacheComponents: true,
|
|
cacheHandlers: {
|
|
remote: resolve(process.cwd(), "cache-handlers/redis-handler.cjs"),
|
|
},
|
|
deploymentId: process.env.NEXT_DEPLOYMENT_ID,
|
|
typescript: {
|
|
// TypeScript is checked in CI before the production image is built.
|
|
ignoreBuildErrors: true,
|
|
},
|
|
allowedDevOrigins: ["astral"],
|
|
output: "standalone",
|
|
images: {
|
|
qualities: [75, 100],
|
|
remotePatterns: [
|
|
{ protocol: "https", hostname: "buzz-cdn.astrxl.dev", pathname: "/**" },
|
|
],
|
|
},
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: "5mb",
|
|
},
|
|
},
|
|
turbopack: {
|
|
root: process.cwd(),
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|