[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDGVDYFBG1CKSNMQ2DD336":3,"skill-same:01M7EDGVDYFBG1CKSNMQ2DD336":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7EDGVDYFBG1CKSNMQ2DD336","render-static-sites",null,"在 Render 全球 CDN 上部署并配置静态站点——构建命令、发布路径、SPA 路由、重定向、自定义 header 及 PR 预览。当用户需要部署静态站点、搭建 React\u002FVue\u002FHugo\u002FGatsby 前端、配置 SPA 回退路由、添加重定向规则、自定义响应 header，或在静态站点与 web service 之间为前端做选择时使用。触发词:static site、CDN、SPA、single-page app、React deploy、Vue deploy、Hugo、Gatsby、Docusaurus、Jekyll、staticPublishPath。","kael-odin\u002Fcodex-plugins-zh","kael-odin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F166499071?v=4","01M7EBHJT87XN88WT3PEQ8ZGZK","Kael Odin","01M7EBHJVC91GD7PGJN3ZB14SG",37,"MIT","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-static-sites\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: render-static-sites\ndescription: \"在 Render 全球 CDN 上部署并配置静态站点——构建命令、发布路径、SPA 路由、重定向、自定义 header 及 PR 预览。当用户需要部署静态站点、搭建 React\u002FVue\u002FHugo\u002FGatsby 前端、配置 SPA 回退路由、添加重定向规则、自定义响应 header，或在静态站点与 web service 之间为前端做选择时使用。触发词:static site、CDN、SPA、single-page app、React deploy、Vue deploy、Hugo、Gatsby、Docusaurus、Jekyll、staticPublishPath。\"\nlicense: MIT\ncompatibility: Render static sites (free tier available)\nmetadata:\n  author: Render\n  version: \"1.0.0\"\n  category: compute\r\n---\r\n\r\n# Render Static Sites\r\n\r\nDeploys static frontends (React, Vue, Hugo, Gatsby, Docusaurus, Jekyll, etc.) to Render's global CDN with automatic TLS, Brotli compression, HTTP\u002F2, and DDoS protection. Free tier available.\r\n\r\n## When to Use\r\n\r\n- Deploying a **static site or SPA** (no server-side rendering)\r\n- Choosing between a **Static Site** and a **Web Service** for a frontend\r\n- Configuring **SPA fallback routing**, **redirects\u002Frewrites**, or **custom headers**\r\n- Setting up **PR preview environments** for a static site\r\n- Troubleshooting **build failures** or **stale content** on a CDN-hosted site\r\n\r\nFor SSR frameworks (Next.js, Nuxt, SvelteKit) that need a running server, use **render-web-services** instead. For Blueprint authoring, see **render-blueprints**.\r\n\r\n## Static Site vs Web Service\r\n\r\n| Need | Use | Why |\r\n|------|-----|-----|\r\n| Pure HTML\u002FCSS\u002FJS, SPA, docs, blog | **Static Site** | Free, global CDN, instant cache invalidation |\r\n| SSR (Next.js `next start`, Nuxt server) | **Web Service** | Needs a running Node\u002FPython\u002Fetc. process |\r\n| Static export from SSR framework | **Static Site** | If the framework supports full static export (`next export`, `nuxt generate`) |\r\n| API backend | **Web Service** | Static sites cannot run server code |\r\n\r\n**Key constraint:** Static sites are **not on the private network**. They cannot communicate with other Render services over internal hostnames.\r\n\r\n## Build and Publish\r\n\r\n| Setting | Purpose |\r\n|---------|---------|\r\n| `buildCommand` | Installs dependencies and builds assets (e.g. `npm ci && npm run build`) |\r\n| `staticPublishPath` | Directory of built output to serve (e.g. `build`, `dist`, `public`) |\r\n\r\nRender auto-detects and installs dependencies. Set `SKIP_INSTALL_DEPS=true` to handle installation yourself in the build command.\r\n\r\n### Common frameworks\r\n\r\n| Framework | Build command | Publish path |\r\n|-----------|--------------|--------------|\r\n| Create React App | `npm ci && npm run build` | `build` |\r\n| Vite (React\u002FVue\u002FSvelte) | `npm ci && npm run build` | `dist` |\r\n| Next.js (static export) | `npm ci && next build` | `out` |\r\n| Nuxt (static) | `npm ci && nuxt generate` | `.output\u002Fpublic` |\r\n| Hugo | `hugo --minify` | `public` |\r\n| Gatsby | `npm ci && gatsby build` | `public` |\r\n| Docusaurus | `npm ci && npm run build` | `build` |\r\n| Jekyll | `bundle exec jekyll build` | `_site` |\r\n| Astro | `npm ci && astro build` | `dist` |\r\n\r\n## SPA Routing and Redirects\r\n\r\nSingle-page apps need a catch-all rule so the CDN serves `index.html` for all routes instead of returning 404.\r\n\r\nConfigure **Redirect\u002FRewrite Rules** in the Dashboard (Settings > Redirects\u002FRewrites) or via the Blueprint `routes` field:\r\n\r\n```yaml\r\nroutes:\r\n  - type: rewrite\r\n    source: \u002F*\r\n    destination: \u002Findex.html\r\n```\r\n\r\nFor multi-path redirects (e.g. old blog URLs), add specific rules **above** the catch-all so they take priority.\r\n\r\nSee `references\u002Frouting-and-headers.md` for redirect types, header rules, and caching patterns.\r\n\r\n## Custom Response Headers\r\n\r\nAdd security and performance headers from the Dashboard (Settings > Headers) or the Blueprint `headers` field:\r\n\r\n```yaml\r\nheaders:\r\n  - path: \u002F*\r\n    name: X-Frame-Options\r\n    value: DENY\r\n  - path: \u002Fassets\u002F*\r\n    name: Cache-Control\r\n    value: public, max-age=31536000, immutable\r\n```\r\n\r\n## PR Previews\r\n\r\nStatic sites support automatic PR previews—each pull request gets a unique URL with the built site.\r\n\r\n- Enable in Dashboard: Settings > PR Previews\r\n- Blueprint: set `previews.generation` to `automatic` or `manual`\r\n- Preview URLs follow the pattern `\u003Cservice>-\u003Cpr-id>.onrender.com`\r\n\r\n## Blueprint Configuration\r\n\r\n```yaml\r\nservices:\r\n  - type: web\r\n    runtime: static\r\n    name: my-frontend\r\n    buildCommand: npm ci && npm run build\r\n    staticPublishPath: dist\r\n    routes:\r\n      - type: rewrite\r\n        source: \u002F*\r\n        destination: \u002Findex.html\r\n    headers:\r\n      - path: \u002F*\r\n        name: X-Frame-Options\r\n        value: DENY\r\n    previews:\r\n      generation: automatic\r\n```\r\n\r\n**Note:** Static sites use `type: web` with `runtime: static` in Blueprints. There is no separate `type: static`.\r\n\r\n## CDN and Performance\r\n\r\n- **Global CDN** with edge caching worldwide\r\n- **Brotli compression** (better than gzip)\r\n- **HTTP\u002F2** by default\r\n- **Immediate cache invalidation** on every deploy (zero-downtime, atomic deploys)\r\n- **DDoS protection** included free\r\n\r\n## Billing\r\n\r\nStatic sites have a **free tier**. They count against workspace-level monthly included amounts for:\r\n\r\n- **Outbound bandwidth** (data served to users)\r\n- **Pipeline minutes** (build time)\r\n\r\n## References\r\n\r\n| Document | Contents |\r\n|----------|----------|\r\n| `references\u002Frouting-and-headers.md` | Redirect types, rewrite rules, header patterns, SPA config |\r\n| `references\u002Fframework-configs.md` | Build commands and publish paths for 10+ frameworks |\r\n\r\n## Related Skills\r\n\r\n- **render-web-services** — For SSR frameworks that need a running server\r\n- **render-blueprints** — Full `render.yaml` schema for static site fields\r\n- **render-domains** — Custom domain and TLS setup\r\n- **render-deploy** — Deploy flows, CLI, MCP operations\r\n","# Render Static Sites\r\n\r\nDeploys static frontends (React, Vue, Hugo, Gatsby, Docusaurus, Jekyll, etc.) to Render's global CDN with automatic TLS, Brotli compression, HTTP\u002F2, and DDoS protection. Free tier available.\r\n\r\n## When to Use\r\n\r\n- Deploying a **static site or SPA** (no server-side rendering)\r\n- Choosing between a **Static Site** and a **Web Service** for a frontend\r\n- Configuring **SPA fallback routing**, **redirects\u002Frewrites**, or **custom headers**\r\n- Setting up **PR preview environments** for a static site\r\n- Troubleshooting **build failures** or **stale content** on a CDN-hosted site\r\n\r\nFor SSR frameworks (Next.js, Nuxt, SvelteKit) that need a running server, use **render-web-services** instead. For Blueprint authoring, see **render-blueprints**.\r\n\r\n## Static Site vs Web Service\r\n\r\n| Need | Use | Why |\r\n|------|-----|-----|\r\n| Pure HTML\u002FCSS\u002FJS, SPA, docs, blog | **Static Site** | Free, global CDN, instant cache invalidation |\r\n| SSR (Next.js `next start`, Nuxt server) | **Web Service** | Needs a running Node\u002FPython\u002Fetc. process |\r\n| Static export from SSR framework | **Static Site** | If the framework supports full static export (`next export`, `nuxt generate`) |\r\n| API backend | **Web Service** | Static sites cannot run server code |\r\n\r\n**Key constraint:** Static sites are **not on the private network**. They cannot communicate with other Render services over internal hostnames.\r\n\r\n## Build and Publish\r\n\r\n| Setting | Purpose |\r\n|---------|---------|\r\n| `buildCommand` | Installs dependencies and builds assets (e.g. `npm ci && npm run build`) |\r\n| `staticPublishPath` | Directory of built output to serve (e.g. `build`, `dist`, `public`) |\r\n\r\nRender auto-detects and installs dependencies. Set `SKIP_INSTALL_DEPS=true` to handle installation yourself in the build command.\r\n\r\n### Common frameworks\r\n\r\n| Framework | Build command | Publish path |\r\n|-----------|--------------|--------------|\r\n| Create React App | `npm ci && npm run build` | `build` |\r\n| Vite (React\u002FVue\u002FSvelte) | `npm ci && npm run build` | `dist` |\r\n| Next.js (static export) | `npm ci && next build` | `out` |\r\n| Nuxt (static) | `npm ci && nuxt generate` | `.output\u002Fpublic` |\r\n| Hugo | `hugo --minify` | `public` |\r\n| Gatsby | `npm ci && gatsby build` | `public` |\r\n| Docusaurus | `npm ci && npm run build` | `build` |\r\n| Jekyll | `bundle exec jekyll build` | `_site` |\r\n| Astro | `npm ci && astro build` | `dist` |\r\n\r\n## SPA Routing and Redirects\r\n\r\nSingle-page apps need a catch-all rule so the CDN serves `index.html` for all routes instead of returning 404.\r\n\r\nConfigure **Redirect\u002FRewrite Rules** in the Dashboard (Settings > Redirects\u002FRewrites) or via the Blueprint `routes` field:\r\n\r\n```yaml\r\nroutes:\r\n  - type: rewrite\r\n    source: \u002F*\r\n    destination: \u002Findex.html\r\n```\r\n\r\nFor multi-path redirects (e.g. old blog URLs), add specific rules **above** the catch-all so they take priority.\r\n\r\nSee `references\u002Frouting-and-headers.md` for redirect types, header rules, and caching patterns.\r\n\r\n## Custom Response Headers\r\n\r\nAdd security and performance headers from the Dashboard (Settings > Headers) or the Blueprint `headers` field:\r\n\r\n```yaml\r\nheaders:\r\n  - path: \u002F*\r\n    name: X-Frame-Options\r\n    value: DENY\r\n  - path: \u002Fassets\u002F*\r\n    name: Cache-Control\r\n    value: public, max-age=31536000, immutable\r\n```\r\n\r\n## PR Previews\r\n\r\nStatic sites support automatic PR previews—each pull request gets a unique URL with the built site.\r\n\r\n- Enable in Dashboard: Settings > PR Previews\r\n- Blueprint: set `previews.generation` to `automatic` or `manual`\r\n- Preview URLs follow the pattern `\u003Cservice>-\u003Cpr-id>.onrender.com`\r\n\r\n## Blueprint Configuration\r\n\r\n```yaml\r\nservices:\r\n  - type: web\r\n    runtime: static\r\n    name: my-frontend\r\n    buildCommand: npm ci && npm run build\r\n    staticPublishPath: dist\r\n    routes:\r\n      - type: rewrite\r\n        source: \u002F*\r\n        destination: \u002Findex.html\r\n    headers:\r\n      - path: \u002F*\r\n        name: X-Frame-Options\r\n        value: DENY\r\n    previews:\r\n      generation: automatic\r\n```\r\n\r\n**Note:** Static sites use `type: web` with `runtime: static` in Blueprints. There is no separate `type: static`.\r\n\r\n## CDN and Performance\r\n\r\n- **Global CDN** with edge caching worldwide\r\n- **Brotli compression** (better than gzip)\r\n- **HTTP\u002F2** by default\r\n- **Immediate cache invalidation** on every deploy (zero-downtime, atomic deploys)\r\n- **DDoS protection** included free\r\n\r\n## Billing\r\n\r\nStatic sites have a **free tier**. They count against workspace-level monthly included amounts for:\r\n\r\n- **Outbound bandwidth** (data served to users)\r\n- **Pipeline minutes** (build time)\r\n\r\n## References\r\n\r\n| Document | Contents |\r\n|----------|----------|\r\n| `references\u002Frouting-and-headers.md` | Redirect types, rewrite rules, header patterns, SPA config |\r\n| `references\u002Fframework-configs.md` | Build commands and publish paths for 10+ frameworks |\r\n\r\n## Related Skills\r\n\r\n- **render-web-services** — For SSR frameworks that need a running server\r\n- **render-blueprints** — Full `render.yaml` schema for static site fields\r\n- **render-domains** — Custom domain and TLS setup\r\n- **render-deploy** — Deploy flows, CLI, MCP operations\r\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":28},{"author":25,"version":26,"category":27},"Render","1.0.0","compute","Render static sites (free tier available)","main","e3091d1b371a9dcd9455d333175f948b286fdfcf","plugins\u002Frender\u002Fskills\u002Frender-static-sites",1,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh","https:\u002F\u002Fkael-odin.github.io\u002Fcodex-plugins-zh\u002F","https:\u002F\u002Fgithub.com\u002Fkael-odin","https:\u002F\u002Fkael-odin.github.io\u002Fodin-valhalla\u002F","Full-stack development • Open-source • System engineering\r\nTurning ideas into repositories.","2026-11-08 17:05:36",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add kael-odin\u002Fcodex-plugins-zh --skill render-static-sites",{"tool":45,"command":46},"bunx","bunx skills add kael-odin\u002Fcodex-plugins-zh --skill render-static-sites",{"tool":48,"command":49},"pnpm","pnpm dlx skills add kael-odin\u002Fcodex-plugins-zh --skill render-static-sites","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-static-sites\u002FSKILL.md",true,[53,59,63],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"agents\u002Fopenai.yaml","REFERENCE","参考文档",204,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-static-sites\u002Fagents\u002Fopenai.yaml",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fframework-configs.md",2564,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-static-sites\u002Freferences\u002Fframework-configs.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Frouting-and-headers.md",2582,"https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-static-sites\u002Freferences\u002Frouting-and-headers.md",[68,77,84,92,99,106],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EDVCKB89EF755PQMKV1BZA","android-emulator-qa","Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EDPX7WHN6HQZ0QKWB0BGVZ","supabase-postgres-best-practices","Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fsupabase\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7EDHHD98T8ZH09F40Q973G3","sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fsentry\u002Fskills\u002Fsentry\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Fsentry\u002Fskills\u002Fsentry\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7EDH3SGVMS1AFS6Q40B5J48","render-workflows","搭建、开发、测试和部署 Render Workflows。涵盖首次脚手架搭建（通过 CLI 或手动方式）、SDK 安装（Python 或 TypeScript）、任务模式（重试、子任务、扇出）、本地开发、控制台部署和故障排查。适用于用户首次搭建 Render Workflows、构建工作流服务、添加或修改工作流任务、本地测试工作流或部署到 Render 的场景。","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-workflows\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7EDH0CYEKQ4VVARHZAQ43S8","render-web-services","配置 Render web service——端口绑定、TLS、健康检查、自定义域名、自动部署、PR 预览、持久化磁盘及部署生命周期。当用户需要搭建 web service、修复健康检查失败、添加自定义域名、配置零停机部署，或排查端口绑定问题时使用。","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-web-services\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7EDGR5505223MAFK19W53GX","render-scaling","为 Render 服务扩缩容——配置自动扩缩目标、选择实例规格、设置手动实例数并优化成本。当用户需要承接更多流量、设置自动扩缩、挑选合适的实例规格、降低成本，或排查诸如缩容缓慢、实例卡住等扩缩行为时使用。","https:\u002F\u002Fgithub.com\u002Fkael-odin\u002Fcodex-plugins-zh\u002Fblob\u002Fmain\u002Fplugins\u002Frender\u002Fskills\u002Frender-scaling\u002FSKILL.md",[],[]]