Skip to content

Commit

Permalink
💚 do not taint values on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredkiss3 committed Sep 12, 2024
1 parent bd08a09 commit 17a4bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { _envObject } from "./env-config.mjs";
* taintUniqueValue is undefined outside of server components :
* - in the client & in other call sites
*/
if (taintUniqueValue) {
if (process.env.SKIP_ENV_VALIDATION?.toString() !== "1" && taintUniqueValue) {
taintUniqueValue(
"Do not pass the DB URL to the client.",
_envObject,
Expand Down

0 comments on commit 17a4bcd

Please sign in to comment.