From 12727d752cf23704b770d5983a9a977de473948d Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Fri, 4 Nov 2022 13:56:01 +0100 Subject: [PATCH] Disable fast boot in DEV env and enable it to loaded in PROD --- src/utils/default.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/default.ts b/src/utils/default.ts index 1b42a83..283b2ef 100644 --- a/src/utils/default.ts +++ b/src/utils/default.ts @@ -12,7 +12,7 @@ import { Position } from '../Enums/Position'; /// EDITOR DEFAULTS /// /** Enable fast boot and disable main menu (0 = disabled, 1 = loading, 2 = loaded) */ -export const FAST_BOOT = 0; +export const FAST_BOOT = import.meta.env.PROD ? 2 : 0; /** Disable any call to the API (default = false) */ export const DISABLE_API = false;