尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证nykelab.nyc: photographs, clips and a journal on one Cloudflare Worker (Astro)
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Nyke Harewood's site, nykelab.nyc: photographs and short clips from trips, a journal, and an endless scroll of all of it (Infinite Azure). One Astro app on one Cloudflare Worker, with no servers to keep.
| Path | What it is |
|---|---|
astro-site/ | The site. Astro pages, the Hono API and D1 migrations in worker/, the library publish scripts, the Playwright tests. Its README is the full guide. |
.github/workflows/ | CI: type-check and build on every push and pull request. |
astro-site/src/worker.ts): static assets, then the Hono API (/api/*; /m/* serves media from R2 with Range support and makes sized WebP copies on demand with Cloudflare Images; /api/event writes to Analytics Engine), then the Astro pages.nykelab (collections, media, counters), R2 nykelab-media (originals, clips, sized copies), a KV namespace for Astro sessions./admin, behind Cloudflare Access. The Worker fails closed (503) until the Access identifiers are set, so a fresh deploy never exposes it.scripts/publish-library.mjs (resumable and idempotent: files to R2, rows to D1, nothing deleted). The originals are not in this repository.cd astro-site
npm install
cp .dev.vars.example .dev.vars # ENVIRONMENT=development: /admin works locally without an Access login
npm run seed # once: fills the local D1 + R2 with sample photos (never production)
npm run dev # http://localhost:4322
npm run check # types + content schema
npm test # Playwright, desktop + phone, with the installed Chrome; starts the dev server if it is not running
npm run deploy # astro build + wrangler deploy (needs `npx wrangler login` as the account owner)
wrangler.jsonc are identifiers every visitor is redirected with, not secrets; the optional analytics token is a Wrangler secret (CF_API_TOKEN). Local settings go in .dev.vars, which is ignored.npm run check and npm run build. The Playwright suite needs the seeded local database and Chrome, so it stays a local step.All photographs and videos are by Nyke Harewood.