mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
59 lines
1.2 KiB
JavaScript
59 lines
1.2 KiB
JavaScript
import createMDX from 'fumadocs-mdx/config';
|
|
import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins";
|
|
import { remarkInstall } from "fumadocs-docgen";
|
|
import { transformerTwoslash } from "fumadocs-twoslash"
|
|
import { JsxEmit, ModuleResolutionKind } from 'typescript';
|
|
const withMDX = createMDX({
|
|
mdxOptions: {
|
|
rehypeCodeOptions: {
|
|
transformers: [
|
|
...rehypeCodeDefaultOptions.transformers,
|
|
transformerTwoslash({
|
|
twoslashOptions: {
|
|
compilerOptions: {
|
|
moduleResolution: ModuleResolutionKind.Bundler,
|
|
jsx: JsxEmit.React
|
|
}
|
|
}
|
|
}),
|
|
],
|
|
},
|
|
remarkPlugins: [
|
|
[
|
|
remarkInstall,
|
|
{
|
|
persist: {
|
|
id: "persist-install",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
redirects() {
|
|
return [
|
|
{
|
|
source: "/docs",
|
|
destination: "/docs/introduction",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
hostname: 'images.unsplash.com'
|
|
},
|
|
{
|
|
hostname: 'assets.aceternity.com'
|
|
},
|
|
]
|
|
}
|
|
};
|
|
|
|
export default withMDX(config);
|