a tool for shared writing and social publishing

change feed service port to 3030 and support local dev

+4 -3
+1 -1
disco.json
··· 3 3 "services": { 4 4 "web": { 5 5 "image": "feed-service", 6 - "port": 3000 6 + "port": 3030 7 7 }, 8 8 "worker": { 9 9 "image": "appview",
+2 -2
feeds/index.ts
··· 7 7 8 8 const app = new Hono(); 9 9 10 - const domain = "feeds.leaflet.pub"; 10 + const domain = process.env.FEED_SERVICE_URL || "feeds.leaflet.pub"; 11 11 const serviceDid = `did:web:${domain}`; 12 12 13 13 app.get("/.well-known/did.json", (c) => { ··· 64 64 return parsed.iss; 65 65 }; 66 66 67 - serve(app); 67 + serve({ fetch: app.fetch, port: 3030 });
+1
package.json
··· 12 12 "build-appview": "esbuild appview/index.ts --outfile=appview/dist/index.js --bundle --platform=node", 13 13 "build-feed-service": "esbuild feeds/index.ts --outfile=feeds/dist/index.js --bundle --platform=node", 14 14 "start-appview-dev": "tsx --env-file='./.env.local' --watch appview/index.ts", 15 + "start-feed-service-dev": "npx tsx --env-file='./.env.local' --watch feeds/index.ts", 15 16 "start-appview-prod": "npm run build-appview && node appview/dist/index.js" 16 17 }, 17 18 "keywords": [],