grain.social is a photo sharing platform built on atproto. grain.social
atproto photography appview
57
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add CDN config for imgproxy URL signing

Upgrade hatk to alpha.58 and configure CDN with imgproxy signing
in production. Images served via cdn.grain.social through Bunny CDN.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+12 -5
+7
hatk.config.ts
··· 23 23 relay: isProd ? "wss://bsky.network" : "ws://localhost:2583", 24 24 plc: isProd ? "https://plc.directory" : "http://localhost:2582", 25 25 port: 3000, 26 + cdn: isProd 27 + ? { 28 + url: "https://cdn.grain.social", 29 + key: process.env.CDN_KEY!, 30 + salt: process.env.CDN_SALT!, 31 + } 32 + : null, 26 33 databaseEngine: "sqlite", 27 34 database: isProd ? "/data/grain.db" : "data/grain.db", 28 35 backfill: {
+4 -4
package-lock.json
··· 6 6 "": { 7 7 "name": "grain", 8 8 "dependencies": { 9 - "@hatk/hatk": "^0.0.1-alpha.57", 9 + "@hatk/hatk": "^0.0.1-alpha.58", 10 10 "@sveltejs/adapter-node": "^5.5.4", 11 11 "@sveltejs/kit": "^2.55.0", 12 12 "@tanstack/svelte-query": "^6.1.0", ··· 164 164 } 165 165 }, 166 166 "node_modules/@hatk/hatk": { 167 - "version": "0.0.1-alpha.57", 168 - "resolved": "https://registry.npmjs.org/@hatk/hatk/-/hatk-0.0.1-alpha.57.tgz", 169 - "integrity": "sha512-S0I4+83UMblcVjJF/rsvfhp+amKFIDEmJdpZJa8HqYJB3D9w5UDsFirdh0otiFqHaAoKsorWb0+sizb1bHp36Q==", 167 + "version": "0.0.1-alpha.58", 168 + "resolved": "https://registry.npmjs.org/@hatk/hatk/-/hatk-0.0.1-alpha.58.tgz", 169 + "integrity": "sha512-2JLS7+wsYIf8E199lwMUSLddLmtGyb5D8H6nhEGRZzimpsg6JXFMusfq2f8Qj18ABrsrBI/S735LacYL52vNSQ==", 170 170 "license": "MIT", 171 171 "dependencies": { 172 172 "@bigmoves/lexicon": "^0.2.2",
+1 -1
package.json
··· 12 12 "test:browser": "npx playwright test" 13 13 }, 14 14 "dependencies": { 15 - "@hatk/hatk": "^0.0.1-alpha.57", 15 + "@hatk/hatk": "^0.0.1-alpha.58", 16 16 "@sveltejs/adapter-node": "^5.5.4", 17 17 "@sveltejs/kit": "^2.55.0", 18 18 "@tanstack/svelte-query": "^6.1.0",