26 lines
481 B
JavaScript
26 lines
481 B
JavaScript
import { createMDX } from 'fumadocs-mdx/next';
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/docs/:path*.mdx',
|
|
destination: '/llms.mdx/docs/:path*',
|
|
},
|
|
];
|
|
},
|
|
webpack: (config) => {
|
|
config.experiments = {
|
|
...config.experiments,
|
|
topLevelAwait: true,
|
|
};
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|