You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -236,19 +236,19 @@ function ensureCommandShouldRunInEnvironment(command: 'build'|'serve', env: Reco
236
236
}
237
237
238
238
if(typeofenv.LARAVEL_VAPOR!=='undefined'){
239
-
throwError('You should not run the Vite HMR server on Vapor. You should build your assets for production instead.');
239
+
throwError('You should not run the Vite HMR server on Vapor. You should build your assets for production instead. To disable this ENV check you may set LARAVEL_BYPASS_ENV_CHECK=1');
240
240
}
241
241
242
242
if(typeofenv.LARAVEL_FORGE!=='undefined'){
243
-
throwError('You should not run the Vite HMR server in your Forge deployment script. You should build your assets for production instead.');
243
+
throwError('You should not run the Vite HMR server in your Forge deployment script. You should build your assets for production instead. To disable this ENV check you may set LARAVEL_BYPASS_ENV_CHECK=1');
244
244
}
245
245
246
246
if(typeofenv.LARAVEL_ENVOYER!=='undefined'){
247
-
throwError('You should not run the Vite HMR server in your Envoyer hook. You should build your assets for production instead.');
247
+
throwError('You should not run the Vite HMR server in your Envoyer hook. You should build your assets for production instead. To disable this ENV check you may set LARAVEL_BYPASS_ENV_CHECK=1')
248
248
}
249
249
250
250
if(typeofenv.CI!=='undefined'){
251
-
throwError('You should not run the Vite HMR server in CI environments. You should build your assets for production instead.');
251
+
throwError('You should not run the Vite HMR server in CI environments. You should build your assets for production instead. To disable this ENV check you may set LARAVEL_BYPASS_ENV_CHECK=1')
0 commit comments