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