We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14be75f commit ee12f30Copy full SHA for ee12f30
packages/vite/src/node/env.ts
@@ -76,7 +76,7 @@ export function resolveEnvPrefix({
76
envPrefix = 'VITE_',
77
}: UserConfig): string[] {
78
envPrefix = arraify(envPrefix)
79
- if (envPrefix.some((prefix) => prefix === '')) {
+ if (envPrefix.includes('')) {
80
throw new Error(
81
`envPrefix option contains value '', which could lead unexpected exposure of sensitive information.`,
82
)
0 commit comments