mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2026-02-12 15:52:47 +00:00
44 lines
891 B
TypeScript
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);
|