Skip to content

Commit

Permalink
fix: fixed "prod" not being detected as production env
Browse files Browse the repository at this point in the history
  • Loading branch information
The24thDS committed Aug 31, 2023
1 parent 234545e commit f8a1cbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const tabs = [
ROUTES.OTHER_TOOLS,
];

const isProd = ENVIRONMENT === "production";
const isProd = ENVIRONMENT === "prod";

const BADGE_COLOR_MAP = {
local: "pink",
Expand Down
2 changes: 1 addition & 1 deletion src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="vite/client" />
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;
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f8a1cbc

Please sign in to comment.