Sample Nextra docs site (Next.js) with Encatch page feedback in the footer.
pnpm installOption A — Install the form: use the button above if you need the feedback form created in Encatch.
Option B — Wire this site: In the app you want to run, copy .env.example → .env and set your Encatch publishable key and combined form slug / question slugs (see that app's README for variable names).
Publishable key: admin.encatch.com → Settings → Publishable key.
| App | Command | Docs |
|---|---|---|
| Next.js | pnpm dev:nextjs |
http://localhost:3000/en/docs |
From the app folder: pnpm dev.
The app uses the same pattern as fumadocs-examples:
.env— publishable key + combined form slug and question slugs (from.env.example).lib/encatch.tsx— SDK init, env, and form helpers.components/docs-page-feedback.tsx— footer UI.- Root layout —
<EncatchInit locale={...} />. - Docs page —
<DocsPageFeedback pageUrl={...} pageTitle={...} />.
Details: apps/nextjs.
This repo applies a small pnpm patch to nextra-theme-docs@4.6.1 so Layout validates props correctly when children is passed as JSX (upstream issue with LayoutPropsSchema).