Skip to content

Commit

Permalink
refactor(frontend): change to use dev version in development
Browse files Browse the repository at this point in the history
  • Loading branch information
t03i committed Nov 28, 2024
1 parent 1f5af77 commit 1fdf201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const config: Config = {
PUBLIC_SENTRY_TRACES_SAMPLE_RATE || "0.1",
),
ENVIRONMENT: import.meta.env.VITE_NODE_ENV || import.meta.env.MODE,
VERSION: import.meta.env.APP_VERSION || "dev",
VERSION:
import.meta.env.MODE === "development" || import.meta.env.MODE === "local"
? "dev"
: import.meta.env.APP_VERSION || "",
PROTEIN_PAGE_SIZE: 25,
};
axios.defaults.baseURL = config.API_BASE_URL;
Expand Down

0 comments on commit 1fdf201

Please sign in to comment.