Yusuke Wada
Yusuke Wada
@eliezedeck You can do that with this code: ```ts type Environment = { Bindings: { PRISMA_URL: string } } const app = new Hono() const prismaMiddleware: MiddlewareHandler = async (c,...
Hi @vassbence , You can do it with this code: ```ts import { createMiddleware } from 'hono/factory' const echoMiddleware = createMiddleware string } }>(async (c, next) => { c.set('echo', (str)...
@vsviridov That is a thing which is not implemented or a just bug. But we may be enable to fix it.
We can close this. Thanks!
Hi @NeoPrint3D , You can write like the following: ```ts app.use('*', async (c, next) => { const sentryMiddleware = sentry({ dsn: c.env.SENTRY_DSN }) return await sentryMiddleware(c, next) }) ```
Hi @FaureAlexis Thanks. But perhaps we can run Apollo Server with [`app.mount()`](https://hono.dev/api/hono#mount) on the Hono app. Though this issue is open, since we would like to have as little middleware...
@obedm503 That's great!! > @yusukebe What is the benefit of app.mount() over app.on()? I did not try but if we use integration like [cloudflare integration](https://github.com/apollo-server-integrations/apollo-server-integration-cloudflare-workers), we can write just like...
@obedm503 > How does hono handle duplicate headers? It uses the `Header` object to manage header values. The `append` method allows it to handle multiple values, so we don't do...
@obedm503 Sorry for the super delayed response. > @yusukebe Do you have any recommendations on the best router to use here? Does it matter? I don't think it matters that...
@RobertSasak Yeah. And now, we have [Secure Headers Middleware](https://hono.dev/middleware/builtin/secure-headers). Closing now.