Used to obtain Hono context in an integrated BFF function.
import { useHonoContext } from '@modern-js/server-runtime';
function useHonoContext(): Context
Developers can use context to obtain more request information, such as setting response headers:
context
import { useHonoContext } from '@modern-js/server-runtime'; export async function get() { const c = useHonoContext(); c.res.headers.set('x-bff-api', 'true'); // ... }