18 lines
511 B
TypeScript
18 lines
511 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Trailing slash for clean URLs
|
|
trailingSlash: true,
|
|
// Images: unoptimized required for static export
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
// Dev mode workaround: next-mdx-remote crashes in dev with Turbopack/webpack
|
|
// This transpiles the package to fix the crash. Production is unaffected.
|
|
transpilePackages: process.env.NODE_ENV !== 'production'
|
|
? ['next-mdx-remote']
|
|
: undefined,
|
|
}
|
|
|
|
export default nextConfig
|