mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
54666aac92
- Set output directory to 'docs' folder - Add build command to skip unnecessary build step - Maintain existing rewrite rules for proper routing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
1021 B
JSON
54 lines
1021 B
JSON
{
|
|
"version": 2,
|
|
"public": true,
|
|
"buildCommand": "echo 'No build needed'",
|
|
"outputDirectory": "docs",
|
|
"rewrites": [
|
|
{
|
|
"source": "/api/(.*)",
|
|
"destination": "/api/$1"
|
|
},
|
|
{
|
|
"source": "/(.*)",
|
|
"destination": "/docs/$1"
|
|
}
|
|
],
|
|
"cleanUrls": true,
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "DENY"
|
|
},
|
|
{
|
|
"key": "X-XSS-Protection",
|
|
"value": "1; mode=block"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/docs/js/(.*).js",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/docs/css/(.*).css",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |