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.

fix: html works again

+6 -1
+6 -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({ ··· 88 90 } 89 91 }); 90 92 91 - app.use('/*', serveStatic({ root: './public', index: 'index.html', rewriteRequestPath: (_path) => `/index.html` })); 93 + app.use('/*', async ctx => { 94 + const html = readFileSync(path.join(import.meta.dirname, '..', 'public', 'index.html')).toString(); 95 + return ctx.html(html); 96 + }); 92 97 93 98 newIngester().start(); 94 99 serve({