Files
vercel__ai-elements/apps/docs/next.config.mjs
Hayden Bleasel cf793dd446 Elements domain (#339)
* 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
2026-01-31 15:31:31 -08:00

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);