Files
davila7__claude-code-templates/vercel.json
daniel 61691e7402 fix: Add CORS headers for components.json and trending-data.json
Allows app.aitmpl.com dashboard to fetch data cross-origin from
www.aitmpl.com without the bare domain 307 redirect issue.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 23:13:17 -05:00

73 lines
1.4 KiB
JSON

{
"buildCommand": "npm run build",
"outputDirectory": "docs",
"headers": [
{
"source": "/components.json",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET" }
]
},
{
"source": "/trending-data.json",
"headers": [
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET" }
]
}
],
"crons": [
{
"path": "/api/claude-code-check",
"schedule": "*/30 * * * *"
},
{
"path": "/api/health-check",
"schedule": "*/15 * * * *"
}
],
"rewrites": [
{
"source": "/",
"destination": "/index.html"
},
{
"source": "/agents",
"destination": "/index.html"
},
{
"source": "/commands",
"destination": "/index.html"
},
{
"source": "/settings",
"destination": "/index.html"
},
{
"source": "/hooks",
"destination": "/index.html"
},
{
"source": "/mcps",
"destination": "/index.html"
},
{
"source": "/templates",
"destination": "/index.html"
},
{
"source": "/plugins",
"destination": "/index.html"
},
{
"source": "/plugin/:name",
"destination": "/plugin.html"
},
{
"source": "/component/:type/:name*",
"destination": "/component.html"
}
]
}