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 <laijimmy0@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
6 lines
102 B
JavaScript
6 lines
102 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
module.exports = {
|
|
experimental: {
|
|
taint: true,
|
|
},
|
|
}
|