mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
48 lines
1.0 KiB
JavaScript
48 lines
1.0 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 { ModuleResolutionKind } from 'typescript';
|
|
const withMDX = createMDX({
|
|
mdxOptions: {
|
|
rehypeCodeOptions: {
|
|
transformers: [
|
|
...rehypeCodeDefaultOptions.transformers,
|
|
transformerTwoslash({
|
|
twoslashOptions: {
|
|
compilerOptions: {
|
|
moduleResolution: ModuleResolutionKind.Bundler
|
|
}
|
|
}
|
|
}),
|
|
],
|
|
},
|
|
remarkPlugins: [
|
|
[
|
|
remarkInstall,
|
|
{
|
|
persist: {
|
|
id: "persist-install",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
});
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
redirects() {
|
|
return [
|
|
{
|
|
source: "/docs",
|
|
destination: "/docs/introduction",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|