---
title: enableHandleWeb
---

# bff.enableHandleWeb

- **Type:** `boolean`
- **Default:** `false`

import EnableBFFCaution from "@site-docs-en/components/enable-bff-caution";

<EnableBFFCaution />

By default, the BFF service can only handle requests for BFF APIs.

When this value is set to `true`, page request will also pass through BFF, and the default logic for page rendering built in Modern.js will run as the last middleware of the BFF service.

```ts title="modern.config.ts"
export default defineConfig({
  bff: {
    enableHandleWeb: true,
  },
});
```
