-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
35 lines (29 loc) · 1.01 KB
/
Copy pathnext.config.ts
File metadata and controls
35 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { NextConfig } from "next";
import bundleAnalyzer from "@next/bundle-analyzer";
import { createMDX } from 'fumadocs-mdx/next';
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
const withMDX = createMDX();
const nextConfig: NextConfig = {
/* config options here */
// Enable standalone output for Docker builds
output: 'standalone',
// Disable static page generation for pages that use authentication
experimental: {
// Note: instrumentation.ts is enabled by default in Next.js 16
// Ensure client components work properly during build
serverActions: {
bodySizeLimit: '2mb',
},
// Disable static generation for error pages
staticGenerationRetryCount: 0,
},
// Configure which pages should be statically generated
// Pages using auth/context should be dynamic
typescript: {
// Don't fail build on type errors (will be caught by CI)
ignoreBuildErrors: false,
},
};
export default withBundleAnalyzer(withMDX(nextConfig));