mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
61691e7402
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>
73 lines
1.4 KiB
JSON
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"
|
|
}
|
|
]
|
|
}
|