Skip to content

Commit

Permalink
fix: gtag > env
Browse files Browse the repository at this point in the history
  • Loading branch information
tiamo committed Apr 29, 2022
1 parent 764c2ab commit 789fb3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ VITE_APP_KEYWORDS="Solana, SOL, Staking"

# api
VITE_API_URL=https://api.jpool.one

# social
VITE_GTAG_ID=
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_GTAG_ID="UA-223939982-1"
7 changes: 1 addition & 6 deletions src/config/social.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@
* The developer of this program can be contacted at <[email protected]>.
*/

const mode = import.meta.env.MODE;
const isProd = mode == 'production';

export const TELEGRAM_URL = 'https://t.me/jstaking';
export const TELEGRAM_ANNOUNCEMENT_URL = 'https://t.me/jstaking';
export const TWITTER_URL = 'https://twitter.com/JPoolSolana';
export const DISCORD_URL = 'https://discord.gg/qR4BA9QXVR';

export const GTAG_ID = isProd ? 'UA-223939982-1' : null;
export const GTAG_ID = import.meta.env.VITE_GTAG_ID;

0 comments on commit 789fb3e

Please sign in to comment.