diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 506e820..a76fb43 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -20,7 +20,7 @@ const tabs = [ ROUTES.OTHER_TOOLS, ]; -const isProd = ENVIRONMENT === "production"; +const isProd = ENVIRONMENT === "prod"; const BADGE_COLOR_MAP = { local: "pink", diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 6fa68b7..bd8fe70 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1,6 +1,6 @@ /// declare const APP_VERSION: string; -declare const ENVIRONMENT: "local" | "dev" | "stage" | "production"; +declare const ENVIRONMENT: "local" | "dev" | "stage" | "prod"; interface ImportMetaEnv { readonly VITE_NETLIFY_FUNCTIONS_LOCAL_SERVER: string; diff --git a/vite.config.ts b/vite.config.ts index 312b56c..f36815a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,12 +7,12 @@ const env = const PWA_TITLE_MAP = { local: "RMG Utils (local)", - production: "RMG Utilities for Stellaris", + prod: "RMG Utilities for Stellaris", stage: "RMG Utils (stage)", dev: "RMG Utils (dev)", }; -const PWA_ICONS_TYPE = env === "production" ? "" : "_" + env; +const PWA_ICONS_TYPE = env === "prod" ? "" : "_" + env; // https://vitejs.dev/config/ export default defineConfig({