Can't get serveStatic to work with `root`
app.use("/static/*", serverStatic({ root: "./static"}))
can't resolve /static/myscript.js
But app.use("/myscript", serveStatic({ path: "./static/assets/myscript.js"})
does work when accessing /myscript
...How to accept flattened objects in query params?
String()
on the query params so that any objects passed through which should normally be something like filters[key]=value
ends up becoming filters="[object Object]"
.
1. I'm pretty sure this use-case should be supported since it appears out in the wild when using query params
2. Is there a way to make this work? or is the recommendation to go with flat query objects / honojs client doesn't support objects in query params?
...The hc function returns an unkown type
hc<Hono<BlankEnv, BlankSchema | MergeSchemaPath<BlankSchema, "/api/auth">, "/api/">>(baseUrl: string, options?: ClientRequestOptions): unknown
hc<Hono<BlankEnv, BlankSchema | MergeSchemaPath<BlankSchema, "/api/auth">, "/api/">>(baseUrl: string, options?: ClientRequestOptions): unknown
Passing types along from Hono to Next
Why does .openapi(route, handler) return unknown type in client.ts when using OpenAPIHono?
Passing `{...rest}` in the html`` tag
html
tagged literal, and I was wondering if its possible to do this using it?
something like: <div ...${rest}>
?...client of type unknown
Got `unknown` type on res.json() on a OpenAPI RPC route
Using honox client.ts to load web components
<Script src='/app/client.ts' async />
in my _renderer.tsx file`...RPC client shows 'any'
``
Element implicitly has an 'any' type because expression of type '":shift_date"' can't be used to index type 'ClientRequest<{ [x:
$${Lowercase<string>}]: { input: any; output: any; outputFormat: string; status: StatusCode; }; }>'.
Property ':shift_date' does not exist on type 'ClientRequest<{ [x:
$${Lowercase<string>}`]: { input: any; output: any; outputFormat: string; status: StatusCode; }; }>'...
Handler type
RouteHandler
like the one present in @hono/zod-openapi
based om my code below, I am using hono-openapi
for .lazy()
and a couple other featuresNode Web Sockets in Hono
Types issue in zod-openapi in v0.19.4, .5, & .6 (repro attached)
Which Hono Router Should I Use in This Case?
zValidator c.req.valid("form") type error
exemple for zod-openapi + rpc
@vitejs/plugin-react can't detect preamble
Hono Client Double-Prefixing Issue

How would you pick between Hono + Client Components vs Hono + React (and with or without HonoX)?
hono aws lambda 404 issues