mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
46 lines
741 B
JavaScript
46 lines
741 B
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
export const withMDX = createMDX({
|
|
configPath: "./source.config.ts",
|
|
});
|
|
|
|
export default withMDX({
|
|
reactStrictMode: true,
|
|
redirects: async () => {
|
|
return [
|
|
{
|
|
source: "/docs",
|
|
destination: "/docs/introduction",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/docs/examples",
|
|
destination: "/docs/examples/next-js",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
serverExternalPackages: [
|
|
"ts-morph",
|
|
"typescript",
|
|
"oxc-transform",
|
|
"@shikijs/twoslash",
|
|
],
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
hostname: "images.unsplash.com",
|
|
},
|
|
{
|
|
hostname: "assets.aceternity.com",
|
|
},
|
|
{
|
|
hostname: "pbs.twimg.com",
|
|
},
|
|
{
|
|
hostname: "github.com",
|
|
},
|
|
],
|
|
},
|
|
});
|