Skip to content

Commit

Permalink
fix(ci/cd): Resolve Matomo in local
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Mar 20, 2024
1 parent 2c0ba1f commit e798b57
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions client/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_API=/api
VITE_APP_MATOMO_BASE_URL=https://matomo.staging.dataesr.ovh
VITE_APP_NAME="Works magnet 🧲"
VITE_DESCRIPTION="Retrieve the scholarly works of your institution"
VITE_GIT_REPOSITORY_URL="https://github.com/dataesr/works-magnet"
Expand Down
1 change: 0 additions & 1 deletion client/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
VITE_HEADER_TAG=
VITE_APP_MATOMO_BASE_URL=https://matomo.staging.dataesr.ovh
VITE_APP_MATOMO_SITE_ID=6
1 change: 0 additions & 1 deletion client/.env.staging
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
VITE_HEADER_TAG=staging
VITE_APP_MATOMO_BASE_URL=https://matomo.staging.dataesr.ovh
VITE_APP_MATOMO_SITE_ID=5
2 changes: 1 addition & 1 deletion client/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const queryClient = new QueryClient();
const matomo = createInstance({
urlBase: VITE_APP_MATOMO_BASE_URL,
siteId: VITE_APP_MATOMO_SITE_ID,
disabled: !VITE_APP_MATOMO_BASE_URL || !VITE_APP_MATOMO_SITE_ID,
disabled: VITE_APP_MATOMO_SITE_ID !== 0,
configurations: {
disableCookies: true,
},
Expand Down

0 comments on commit e798b57

Please sign in to comment.