From 18a3d63c19311ad7c8034bc05923be81f17792d8 Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Mon, 4 May 2026 20:31:45 +0200 Subject: [PATCH] small fixes --- docs/Contributing.md | 5 +++-- src/lib/actor.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Contributing.md b/docs/Contributing.md index eca8834..e2b852d 100644 --- a/docs/Contributing.md +++ b/docs/Contributing.md @@ -8,10 +8,11 @@ For new cards see [CustomCards](CustomCards.md) and [CardIdeas](CardIdeas.md). git clone https://github.com/flo-bit/blento.git cd blento pnpm install -pnpm env:setup-dev # creates .env, fills COOKIE_SECRET + CLIENT_ASSERTION_KEY pnpm dev ``` +No `.env` file required — dev uses the loopback OAuth public client, a fallback cookie secret, and `blento.app` as the default handle for `/`. + Note: if cloudflare authorization website opens when running `pnpm dev` flip the `DB` binding's `"remote": true` to `false` in `wrangler.jsonc` and re-run. Individual `/handle` pages load directly from each user's PDS — no backfill needed. @@ -27,7 +28,7 @@ In-progress changes go on a subpage so your live profile stays clean: `/your.han ## AI-assisted PRs -Welcome — please: +AI-assisted PRs are accepted, especially if you just create a new card, but please: - Keep diffs minimal; no unrelated cleanup or verbose code - Test light/dark, colored cards, edit/view, desktop and both mobile modes (screen-size and `pointer: coarse`) diff --git a/src/lib/actor.ts b/src/lib/actor.ts index 6b662ac..72f605a 100644 --- a/src/lib/actor.ts +++ b/src/lib/actor.ts @@ -30,7 +30,7 @@ export async function getActor({ console.error('failed to get custom domain kv', error); } } else { - actor = publicEnv.PUBLIC_HANDLE as ActorIdentifier; + actor = (publicEnv.PUBLIC_HANDLE || 'blento.app') as ActorIdentifier; } } else if (customDomain && paramActor && blockBoth) { actor = undefined; -- 2.51.2