next.js
4e2abec3 - docs: note that experimental.taint taints process.env (#98145)

Commit
92 days ago
docs: note that experimental.taint taints process.env (#98145) Enabling `experimental.taint` makes Next.js taint `process.env` for you (`app-render.tsx`), so passing it whole to a Client Component throws. The docs never mentioned this. Adds it to the existing "Good to know" callout, plus a caveat that the taint is by object reference, so `process.env.MY_VAR` and `{ ...process.env }` still pass through.
Author
Parents
Loading