diff options
| author | Adam Soltys <[email protected]> | 2026-10-20 07:01:36 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-20 07:01:36 -0700 |
| commit | 84b6a68000c942e17bfe75c1493eddad7ceb5b78 (patch) | |
| tree | 018c2fd243c23c813b59ca0bc4a6f2371ff65af7 /build.js | |
| parent | b054dfd07e9313eca3df5d052b4f32cc4460ac48 (diff) | |
| download | coinosv3-84b6a68000c942e17bfe75c1493eddad7ceb5b78.tar.gz coinosv3-84b6a68000c942e17bfe75c1493eddad7ceb5b78.zip | |
Developer docs at /docs/: which coinos to build against, Lightning addresses/LNURL/NIP-05/BIP-353, Nostr Wallet Connect (methods, budgets, who answers), the hosted REST API (coinos.io/api, moving to v2.coinos.io at the cutover), what migrating a username does to an API account, and testing on mutinynet (staging.coinos.io and its /api). The service worker leaves /docs alone, so it never becomes the offline shell.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013ZDf1cyCQLkfjftYhymZAg
Diffstat (limited to 'build.js')
| -rw-r--r-- | build.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -90,6 +90,8 @@ self.addEventListener('fetch', (e) => { // copy, the player stalled and failed), and video segments would fill the // cache with what's already been watched. if (u.pathname.startsWith('/live/') || u.pathname.startsWith('/vmedia/hls')) return; + // The developer docs are their own page, not the app: never the offline shell. + if (u.pathname === '/docs' || u.pathname.startsWith('/docs/')) return; if (req.mode === 'navigate') { // A note page comes back with its thread rendered into it (the server's @@ -535,6 +537,8 @@ if (import.meta.main) { // ...and the default profile covers, full size and the wizard's preview copies for (const d of ['punks', 'punks-sm', 'covers', 'covers-sm']) for (const f of readdirSync('static/' + d)) await Bun.write(`dist/${d}/${f}`, Bun.file(`static/${d}/${f}`)); + // the developer docs, a plain page at /docs/ + for (const f of readdirSync('static/docs')) await Bun.write(`dist/docs/${f}`, Bun.file(`static/docs/${f}`)); const kb = (Buffer.byteLength(html) / 1024).toFixed(0); const jkb = (Buffer.byteLength(rawJs) / 1024).toFixed(0); |
