mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +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>
12 lines
213 B
TypeScript
12 lines
213 B
TypeScript
import React from 'react'
|
|
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
export default function Root({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|