ex0ns
ex0ns
HHono
Created by Chris on 8/30/2024 in #help
Hono SSE Stream Closing Unexpectedly After 10 Seconds
Honestly, I just node.js because I'm more familiar with it and was easier for me to work with Node.js, however due to some monorepo, bundling and typescript setup running our server locally on our laptop became a pain in the a** (tsx, ts-run, you name it always failed at some point), I decided to try bun to run TS natively and it worked amazingly so far.
16 replies
HHono
Created by Chris on 8/30/2024 in #help
Hono SSE Stream Closing Unexpectedly After 10 Seconds
Yes it is. But I only use bun to dev, in prod we use node.js so this value is only use locally, but I agree that you should probably set it to another value if you use bun in production
16 replies
HHono
Created by Chris on 8/30/2024 in #help
Hono SSE Stream Closing Unexpectedly After 10 Seconds
export default {
port: process.env.PORT ?? 8787,
fetch: app.fetch,
idleTimeout: 0,
};
export default {
port: process.env.PORT ?? 8787,
fetch: app.fetch,
idleTimeout: 0,
};
16 replies
HHono
Created by Chris on 8/30/2024 in #help
Hono SSE Stream Closing Unexpectedly After 10 Seconds
I increased the value of idleTimeout
16 replies
HHono
Created by Chris on 8/30/2024 in #help
Hono SSE Stream Closing Unexpectedly After 10 Seconds
I had this issue since version 1.1.26 of bun.... this is a nasty setting to change in a patch
16 replies
HHono
Created by Chris on 8/30/2024 in #help
Hono SSE Stream Closing Unexpectedly After 10 Seconds
16 replies
WWindmill
Created by ex0ns on 5/23/2024 in #help
typescript client in cloudflare workers
By working I mean not crashing anymore. But I can't test other runtime right now
10 replies
WWindmill
Created by ex0ns on 5/23/2024 in #help
typescript client in cloudflare workers
I have tested locally (using wrangler, so it should be as close as possible to the real runtime), and globalThis?.process is indeed working
10 replies
HHono
Created by Marcel Overdijk on 4/15/2024 in #help
Validate response objects
You can do this directly in the body of the handler can't you ? Before returning c.json(content) you could call returnSchema.parse(content) (where returnSchema is a zod schema)
4 replies
HHono
Created by Marcel Overdijk on 4/9/2024 in #help
How to generate openapi.yaml spec with Zod OpenAPI Hono?
You can call
app.getOpenAPIDocument( {
openapi: '3.0.0',
info: {
version: '1.0.0',
title: 'My API',
},
}))
app.getOpenAPIDocument( {
openapi: '3.0.0',
info: {
version: '1.0.0',
title: 'My API',
},
}))
On your hono to retrieve the document, from there you can probably write it to your filesystem or use it in your build system
4 replies
HHono
Created by Firu on 4/2/2024 in #help
Does Hono Cloudflare Pages work with `@supabase/supabase-js`?
Thanks !
19 replies
HHono
Created by Firu on 4/2/2024 in #help
Does Hono Cloudflare Pages work with `@supabase/supabase-js`?
so you bypassed wrangler as well ? going directly with esbuild to bundle the worker ?
19 replies
HHono
Created by Firu on 4/2/2024 in #help
Does Hono Cloudflare Pages work with `@supabase/supabase-js`?
Yup, see the comments in the issue I've linked, there is a workaround described, I hope this will get fixed soon, this sucks
19 replies
HHono
Created by Firu on 4/2/2024 in #help
Does Hono Cloudflare Pages work with `@supabase/supabase-js`?
Side note (about workers): the last release of supabase-js/supabase-auth seems to have some issues when running inside the workers: https://github.com/supabase/supabase-js/issues/1001#issuecomment-2029478541 Using a previous version "just works". This is not directly related to your question about Cloudflare Pages (I can't answer this part), but beware if you try to use cloudflare workers at the moment
19 replies