The recipes.blue monorepo recipes.blue
recipes appview atproto
2
fork

Configure Feed

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

feat: serve static in the fly proxy

+7 -1
+3 -1
apps/api/src/index.ts
··· 11 11 import { CookwareSession } from "./util/api.js"; 12 12 import { serveStatic } from "@hono/node-server/serve-static"; 13 13 import * as Sentry from "@sentry/node" 14 + import { readFileSync } from "fs"; 15 + import path from "path"; 14 16 15 17 if (env.SENTRY_DSN) { 16 18 Sentry.init({ ··· 87 89 } 88 90 }); 89 91 90 - app.use('/assets/*', serveStatic({ root: env.PUBLIC_DIR })); 91 92 app.use('/*', serveStatic({ root: env.PUBLIC_DIR, rewriteRequestPath: () => 'index.html' })); 92 93 94 + newIngester().start(); 93 95 serve({ 94 96 fetch: app.fetch, 95 97 hostname: env.HOST,
+4
fly.toml
··· 32 32 [[services.ports]] 33 33 handlers = ["tls", "http"] 34 34 port = 443 35 + 36 + [[statics]] 37 + guest_path = "/usr/src/app/apps/web/dist/assets" 38 + url_prefix = "/assets"