6c93b1d995
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
37 lines
917 B
JavaScript
37 lines
917 B
JavaScript
import createMDX from '@next/mdx'
|
|
import createNextIntlPlugin from 'next-intl/plugin'
|
|
|
|
const withMDX = createMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [],
|
|
rehypePlugins: [],
|
|
},
|
|
})
|
|
|
|
const withNextIntl = createNextIntlPlugin('./i18n/request.ts')
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
|
images: {
|
|
// Disable optimization inside Docker to avoid container loopback fetch failures (502)
|
|
unoptimized: process.env.NEXT_IMAGE_UNOPTIMIZED === 'true',
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img.youtube.com',
|
|
pathname: '/vi/**',
|
|
},
|
|
]
|
|
},
|
|
// Enable standalone output to run without dev deps on server
|
|
output: 'standalone',
|
|
// 禁用telemetry
|
|
experimental: {
|
|
instrumentationHook: true,
|
|
},
|
|
}
|
|
|
|
export default withNextIntl(withMDX(nextConfig));
|