mirror of
https://github.com/vercel/ai-elements.git
synced 2026-09-14 19:48:26 +08:00
cf793dd446
* Remove microfrontends * Remove /elements subpath, update URL * Fix local paths * Remove custom AI SDK navbar * Update global.css * Restore docs in path * Restore Geistdocs homepage * Split up docs, components and examples * New routes for components and examples * IA fixes * Update hero, start adding components to homepage * Experimenting with hero * Update pnpm-lock.yaml * Add new docs * Update geistdocs.tsx * Update examples, add new IDE example * Create source-code.tsx * Cleanup ide.mdx * Cleanup examples * Update homepage content * Misc fixes * Update elements-installer.tsx * Update meta.json * Deprecate Loader component for shadcn/ui Spinner * Add changeset files * Update homepage and templates * Update code-block.tsx * Misc fixes * Update callout.tsx * Remove hero badge * Resolves #328 * Build fixes * Update README.md
67 lines
1.3 KiB
JavaScript
67 lines
1.3 KiB
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "github.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "placehold.co",
|
|
},
|
|
],
|
|
},
|
|
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: "/:lang/:path*.mdx",
|
|
destination: "/:lang/llms.mdx/:path*",
|
|
},
|
|
{
|
|
source: "/:lang/:path*.md",
|
|
destination: "/:lang/llms.mdx/:path*",
|
|
},
|
|
];
|
|
},
|
|
|
|
redirects() {
|
|
return [
|
|
{
|
|
source: "/overview",
|
|
destination: "/",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/examples",
|
|
destination: "/examples/chatbot",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/components",
|
|
destination: "/components/attachments",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/components/chatbot",
|
|
destination: "/examples/chatbot",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/components/loader",
|
|
destination: "https://ui.shadcn.com/docs/components/radix/spinner",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|