mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
54 lines
929 B
JavaScript
54 lines
929 B
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
optimizePackageImports: [
|
|
"lucide-react",
|
|
"framer-motion",
|
|
"@radix-ui/react-tabs",
|
|
"@radix-ui/react-scroll-area",
|
|
"@radix-ui/react-popover",
|
|
"@radix-ui/react-select",
|
|
"@radix-ui/react-checkbox",
|
|
],
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "**",
|
|
},
|
|
],
|
|
},
|
|
assetPrefix: "/docs-assets",
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/docs",
|
|
destination: "/docs/introduction",
|
|
permanent: false,
|
|
},
|
|
];
|
|
},
|
|
async rewrites() {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: "/docs-assets/_next/:path*",
|
|
destination: "/_next/:path*",
|
|
},
|
|
],
|
|
};
|
|
},
|
|
};
|
|
|
|
const withMDX = createMDX({
|
|
contentDirBasePath: "/content/docs",
|
|
});
|
|
export default withMDX(nextConfig);
|