24 lines
474 B
TypeScript
24 lines
474 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const isDev = process.env.NODE_ENV === "development";
|
|
|
|
const nextConfig: NextConfig = {
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: "10mb",
|
|
},
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "*.r2.cloudflarestorage.com",
|
|
},
|
|
...(isDev
|
|
? [{ protocol: "http" as const, hostname: "localhost" }]
|
|
: []),
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|