envPrefix conflicts with secret environment variables
Ta treść nie jest jeszcze dostępna w Twoim języku.
EnvPrefixConflictsWithSecret: The following environment variables are declared with
access: "secret"inenv.schema, but their names match a prefix invite.envPrefix, which would expose them in client-side bundles:
CONFLICTS.MAP((C) =\ >- ${C).join('
')}
Either remove the conflicting prefixes fromvite.envPrefix, or rename these variables to use a prefix not invite.envPrefix.
What went wrong?
Section titled “What went wrong?”The configured vite.envPrefix includes prefixes that match environment variables declared with access: "secret" in env.schema.
This would cause Vite to expose those secret values in client-side JavaScript bundles, bypassing the access: "secret" protection.
To fix this, either:
- Remove the conflicting prefixes from
vite.envPrefix, or - Rename your secret environment variables to use a prefix that is not in
vite.envPrefix.