mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 15:11:13 +00:00
59 lines
1.1 KiB
JavaScript
59 lines
1.1 KiB
JavaScript
import { createMDX } from 'fumadocs-mdx/next';
|
|
|
|
const withMDX = createMDX({
|
|
mdxOptions: {
|
|
remarkPlugins: {
|
|
image: {
|
|
checkImageSize: false
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
output: 'standalone',
|
|
reactStrictMode: true,
|
|
compress: true,
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/deploy/:path*',
|
|
headers: [
|
|
{
|
|
key: 'Content-Type',
|
|
value: 'text/plain; charset=utf-8',
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
unoptimized: true,
|
|
dangerouslyAllowSVG: true,
|
|
domains: ['oss.laf.run', 'static.ppinfra.com', 'cdn.jsdelivr.net'],
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'oss.laf.run',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'static.ppinfra.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'cdn.jsdelivr.net',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|