Files
better-auth/docs/next.config.mjs
2025-03-01 02:22:32 +03:00

52 lines
862 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",
},
{
hostname: "hebbkx1anhila5yf.public.blob.vercel-storage.com",
},
],
},
devIndicators: {
appIsrStatus: false,
},
});