You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(micro): make page live from R2, fix anchor bug, remove stale code
- Replace build-time content collection with live R2 reads in micro.astro,
[id].astro, and rss.xml.ts so new posts appear immediately without a rebuild
- Remove micro-loader.ts and micro collection from content.config.ts/schemas.ts
- Fix #post-${id} anchor URL in browse.ts (was not matching article id attribute)
- Rename shadowed clack prompts variable in browse.ts find() callback
- Add title field to RSS items (truncated content excerpt)
- Show syndicated platform names as links instead of raw URLs
- Replace all emojis in gen-url-manifest.ts console output with plain text
- Fix misleading comment about anchor URL format in gen-url-manifest.ts
- Update README to remove stale D1/Drizzle references
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/micro/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ CLI tool for creating and managing micro blog posts.
10
10
- Automatic syndication to Bluesky and Twitter
11
11
- Delete posts
12
12
- Open posts in browser
13
-
-D1 database integration via Drizzle ORM
13
+
-R2 JSONL storage via HTTP API
14
14
15
15
## Installation
16
16
@@ -52,7 +52,7 @@ Creates a post directly from the command line.
52
52
## Requirements
53
53
54
54
- Bun >= 1.0.0
55
-
-Cloudflare D1 database configured in wrangler.toml
55
+
-A running instance of the site with `MICRO_BUCKET` (R2) and `MICRO_SECRET` configured
56
56
57
57
## Social Media Syndication
58
58
@@ -92,9 +92,9 @@ To get Twitter API credentials:
92
92
93
93
### Syndication Behavior
94
94
95
-
- Posts are created in the database first, ensuring they're saved even if syndication fails
95
+
- Posts are saved to R2 first, ensuring they're preserved even if syndication fails
96
96
- Syndication attempts are made to all configured platforms
97
-
- The `syndicated_to` field in the database tracks which platforms received the post
97
+
- The `syndicatedTo` field tracks which platforms received the post
98
98
- Syndication failures are logged but don't prevent post creation
99
99
- Rate limits and authentication errors are handled gracefully with clear error messages
100
100
@@ -104,4 +104,4 @@ To test syndication without real API credentials, simply don't set the environme
104
104
105
105
## Development
106
106
107
-
The CLI uses Wrangler's `getPlatformProxy`to access the local D1 database. Make sure you have a `wrangler.toml` configured with a D1 database binding named `DB`.
107
+
The CLI talks to the site's HTTP API. Set `MICRO_SECRET` to authenticate and `MICRO_SITE_URL` to point at a local dev server (defaults to `https://just-be.dev`).
0 commit comments