mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
c41debd23a
Exposes the new experimental Taint APIs using the `taint` flag which enables experimental React. As an example for how we can use it, I use it to taint `process.env` with a better error message. I'm not sure where this should live since it's a global init but it needs access to the global config. It's unnecessary to retaint it for every render but not sure if there's a better place for it. --------- Co-authored-by: Jimmy Lai <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
6 lines
134 B
TypeScript
6 lines
134 B
TypeScript
import ClientComponent from './component'
|
|
|
|
export default async function Page() {
|
|
return <ClientComponent config={process.env} />
|
|
}
|