Sample Nextra docs site (Next.js) with Encatch page feedback in the footer.
pnpm installIn the app you want to run, copy .env.example → .env and set your Encatch publishable key and form 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: /en/docs) |
From the app folder: pnpm dev.
The app uses the same pattern as fumadocs-examples:
.env— publishable key + form 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).