For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /apis/app/hooks/config/mock.md.

mock/

When there is a config/mock/index.ts or config/mock/index.js file in the project directory, Modern.js will automatically enable the Mock service during development. Use dev.mockDir to customize this directory.