mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 20:37:44 +00:00
61 lines
1003 B
JavaScript
61 lines
1003 B
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/docs/:path*.mdx",
|
|
destination: "/llms.txt/:path*",
|
|
},
|
|
];
|
|
},
|
|
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",
|
|
},
|
|
],
|
|
},
|
|
reactStrictMode: true,
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|