콘텐츠로 이동

envPrefix conflicts with secret environment variables

EnvPrefixConflictsWithSecret: The following environment variables are declared with access: "secret" in env.schema, but their names match a prefix in vite.envPrefix, which would expose them in client-side bundles:

CONFLICTS.MAP((C) =\ >- ${C).join('
')}

Either remove the conflicting prefixes from vite.envPrefix, or rename these variables to use a prefix not in vite.envPrefix.

구성된 vite.envPrefixenv.schema에서 access: "secret"으로 선언된 환경 변수와 접두사가 일치하는 항목이 포함되어 있습니다. 이 경우 Vite가 해당 비밀 값들을 클라이언트 측 JavaScript 번들에 노출하게 되어, access: "secret" 보호를 우회하게 됩니다.

이를 해결하려면 다음 중 하나를 수행하세요.

  • vite.envPrefix에서 충돌하는 접두사를 제거하거나
  • 비밀 환경 변수의 이름을 변경하여 vite.envPrefix에 포함되지 않은 접두사를 사용하세요.
기여하기 커뮤니티 후원하기