pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: make Google Analytics configurable with VITE_GA_ID

qtchaos 0e72829d 02fceb7f

+8 -6
+1 -1
src/setup/constants.ts
··· 2 2 export const DISCORD_LINK = "https://discord.gg/gQYB6fGArX"; 3 3 export const GITHUB_LINK = "https://github.com/movie-web/movie-web"; 4 4 export const DONATION_LINK = "https://ko-fi.com/movieweb"; 5 - export const GA_ID = "G-44YVXRL61C"; 5 + export const GA_ID = import.meta.env.VITE_GA_ID; 6 6 export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL;
+7 -5
src/setup/ga.ts
··· 2 2 3 3 import { GA_ID } from "@/setup/constants"; 4 4 5 - ReactGA.initialize([ 6 - { 7 - trackingId: GA_ID, 8 - }, 9 - ]); 5 + if (GA_ID) { 6 + ReactGA.initialize([ 7 + { 8 + trackingId: GA_ID, 9 + }, 10 + ]); 11 + }