envPrefix conflicts with secret environment variables
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.
무엇이 잘못되었나요?
섹션 제목: “무엇이 잘못되었나요?”구성된 vite.envPrefix에 env.schema에서 access: "secret"으로 선언된 환경 변수와 접두사가 일치하는 항목이 포함되어 있습니다.
이 경우 Vite가 해당 비밀 값들을 클라이언트 측 JavaScript 번들에 노출하게 되어, access: "secret" 보호를 우회하게 됩니다.
이를 해결하려면 다음 중 하나를 수행하세요.
vite.envPrefix에서 충돌하는 접두사를 제거하거나- 비밀 환경 변수의 이름을 변경하여
vite.envPrefix에 포함되지 않은 접두사를 사용하세요.