chore: cleanup env variable

pull/3256/head
Alice Dahan 2024-12-10 11:49:35 +01:00 committed by liliced
parent cbacb19b24
commit 9c480825a8
3 changed files with 2 additions and 7 deletions

View File

@ -60,7 +60,7 @@ jobs:
run: yarn workspace site build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_AT_INTERNET_SITE_ID: ${{ needs.deploy-context.outputs.env-name == 'master' && 617190 || 617189 }}
VITE_AT_INTERNET_SITE_ID: ${{ vars.VITE_AT_INTERNET_SITE_ID }}
VITE_ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
VITE_ALGOLIA_SEARCH_KEY: ${{secrets.ALGOLIA_SEARCH_KEY}}
VITE_ALGOLIA_INDEX_PREFIX: monentreprise-${{needs.deploy-context.outputs.env-name}}-

View File

@ -16,7 +16,6 @@ VITE_ALGOLIA_APP_ID=
VITE_ALGOLIA_SEARCH_KEY=
VITE_ALGOLIA_INDEX_PREFIX=monentreprise-master-
VITE_AT_INTERNET_SITE_ID=
VITE_AT_INTERNET_DEV_SITE_ID=
VITE_FR_BASE_URL="http://localhost:3000/mon-entreprise"
VITE_EN_BASE_URL="http://localhost:3000/infrance"

View File

@ -117,11 +117,7 @@ function TrackingProvider({ children }: { children: React.ReactNode }) {
script.async = true
script.onload = () => {
const siteId = (
!import.meta.env.SSR
? import.meta.env.VITE_AT_INTERNET_SITE_ID
: import.meta.env.VITE_AT_INTERNET_DEV_SITE_ID
) as string
const siteId = import.meta.env.VITE_AT_INTERNET_SITE_ID
const ATTrackerClass = createTracker(
siteId,