mirror of
https://github.com/vercel/ai-elements.git
synced 2026-09-14 19:48:26 +08:00
1f5e46fec6
* fix: Preview component import path and add robots.txt
Fixes #issue-number
- Fix Preview component to use correct package.json export path
Changed from @repo/examples/src/${path}.tsx to @repo/examples/${path}
to match the exports configuration in package.json
- Add robots.ts file to handle /robots.txt requests
Previously the [lang] dynamic route was catching /robots.txt
causing 500 errors
- Add error handling for missing component default exports
- Temporarily add ignoreBuildErrors to test in Vercel production
This allows deployment to verify the fix for the production-only
"Cannot use 'in' operator to search for 'root' in undefined" error
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Remove reactStrictMode and TypeScript settings
Removed reactStrictMode and TypeScript build error settings.
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
15 lines
384 B
TypeScript
15 lines
384 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
const protocol = process.env.NODE_ENV === "production" ? "https" : "http";
|
|
const baseUrl = `${protocol}://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`;
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
};
|
|
}
|