mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 06:15:39 -04:00
- Add `apps/public-api` (`@sofa/public-api`) — minimal Hono app
deployable to Vercel; `GET /v1/version` fetches the latest GitHub
release and returns `{ version, releaseUrl }` with a 15-minute
CDN cache (`s-maxage=900, stale-while-revalidate=3600`)
- Update `packages/core/src/update-check.ts` to call
`PUBLIC_API_URL/v1/version` instead of the GitHub API directly;
`PUBLIC_API_URL` defaults to `https://public-api.sofa.watch`
21 lines
434 B
JSON
21 lines
434 B
JSON
{
|
|
"name": "@sofa/public-api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "PORT=3002 bun --watch src/app.ts",
|
|
"start": "PORT=3002 bun src/app.ts",
|
|
"lint": "biome check",
|
|
"format": "biome format --write",
|
|
"check-types": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"hono": "4.12.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|