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.
typeof
1 parent f6f04f4 commit 4048386Copy full SHA for 4048386
src/utils/has-php-translations.ts
@@ -8,5 +8,5 @@ function checkProcessEnv(): boolean {
8
9
function checkImportMeta(): boolean {
10
/** @ts-ignore */
11
- return import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP ? true : false
+ return typeof import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP !== 'undefined' && import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP ? true : false
12
}
0 commit comments