Skip to content

Commit

Permalink
cleanup client side env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Apr 8, 2024
1 parent 855e2ae commit 318c131
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ts/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ export const API_WEBSITE_META_WRITE = '/meta'
// @see webpack.config.js
declare const SILEX_VERSION_ENV: string
export let SILEX_VERSION
try { SILEX_VERSION = SILEX_VERSION_ENV } catch (e) {}
SILEX_VERSION = SILEX_VERSION || '3.0.0'
try { SILEX_VERSION = SILEX_VERSION_ENV } catch (e) {
// fallback to default value
SILEX_VERSION = SILEX_VERSION || '3.0.0'
}

0 comments on commit 318c131

Please sign in to comment.