Deploy public asset

From 2017YANR02/cuberoot.me · View interactive version

Deploy public asset is an AI agent skill from the GitHub repository 2017YANR02/cuberoot.me. Use when adding or debugging public/static assets such as images, fonts, GeoJSON, textures, or WASM, including public/ and asset 404 requests. Next assets belong in client/public; shared fork and statistics assets remain in tools or stats.

How to use this skill

Skill file

新增 public / 静态资源

线上前端是 Next.js (packages/client);Vite + 根目录 commit + GH Pages 镜像(deploy_mirror)已于 2026-06-14 全部移除。旧的"两处白名单 + 仓库根再放一份"机制已作废。

常规 public 资源(图片 / 字体 / geojson / wasm 等)

直接放进 core/packages/client/public/<file> —— 完事。

共享 fork / stats 静态(`tools/` + `stats/`)

仓库根的 tools/(forks: Solver / AlgTrainer / csTimer)和 stats/(WCA stats JSON)由 static.cuberoot.me 服(服务器 /www/wwwroot/toolkit/{tools,stats}/);Vercel/Next 上 app/{tools,stats}/[...slug]/route.ts fallback 反代过去。

验证

  1. 本地:http://127.0.0.1:3000/<path> → 200
  2. 线上:push 后 https://cuberoot.me/<path> → 200(public 资源走 Next;tools/stats 走 static.cuberoot.me fallback)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.