Files
awesome-chatgpt-prompts-pro…/next.config.ts

44 lines
891 B
TypeScript

import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
const nextConfig: NextConfig = {
reactCompiler: true,
// Enable standalone output for Docker
// output: "standalone",
// Experimental features
experimental: {
// Enable server actions
serverActions: {
bodySizeLimit: "2mb",
},
},
// Image optimization
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
// Redirects
async redirects() {
return [
{
source: "/vibe",
destination: "/categories/vibe",
permanent: true,
},
{
source: "/sponsors",
destination: "/categories/sponsors",
permanent: true,
},
];
},
};
export default withNextIntl(nextConfig);