23 lines
498 B
TypeScript
23 lines
498 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
void import('@opennextjs/cloudflare').then(
|
|
({ initOpenNextCloudflareForDev }) => initOpenNextCloudflareForDev(),
|
|
)
|
|
}
|
|
|
|
const nextConfig: NextConfig = {
|
|
// TODO: re-enable image optimization once free transformation quota resets
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
typedRoutes: true,
|
|
reactCompiler: true,
|
|
logging: {
|
|
fetches: {
|
|
fullUrl: true,
|
|
},
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|