mirror of
https://github.com/vercel/ai-elements.git
synced 2026-09-14 19:48:26 +08:00
52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
hostname: "github.com",
|
|
protocol: "https",
|
|
},
|
|
{
|
|
hostname: "placehold.co",
|
|
protocol: "https",
|
|
},
|
|
],
|
|
},
|
|
|
|
redirects() {
|
|
return [
|
|
{
|
|
destination: "/",
|
|
permanent: true,
|
|
source: "/overview",
|
|
},
|
|
{
|
|
destination: "/examples/chatbot",
|
|
permanent: true,
|
|
source: "/examples",
|
|
},
|
|
{
|
|
destination: "/components/attachments",
|
|
permanent: true,
|
|
source: "/components",
|
|
},
|
|
{
|
|
destination: "/examples/chatbot",
|
|
permanent: true,
|
|
source: "/components/chatbot",
|
|
},
|
|
{
|
|
destination: "https://ui.shadcn.com/docs/components/radix/spinner",
|
|
permanent: true,
|
|
source: "/components/loader",
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|