You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,15 @@ nvm use 18
27
27
28
28
## Environment variables
29
29
30
-
Information is more complete if a GitHub access token is provided. It should only be granted read access.
31
-
Set it as an environment variable called `GITHUB_TOKEN`. (In the CI, this will be provided by the platform.)
30
+
The site pulls data from a range of sources, some of which need credentials. For the full build, set the following environment variables:
31
+
32
+
-`GITHUB_TOKEN` (this will be automatically set in a GitHub CI, and should only be granted read access)
33
+
-`TABLEAU_PERSONAL_ACCESS_TOKEN`
34
+
-`TABLEAU_SITE`
35
+
-`SEGMENT_KEY` (used for anonymised analytics)
36
+
37
+
Information is more complete if a these tokens are provided, but the build should still succeed if they are missing. If it fails without them, please raise an issue.
38
+
In PR builds, everything except the `GITHUB_TOKEN` will be missing.
console.log("No TABLEAU_PERSONAL_ACCESS_TOKEN has been set. Not fetching download data.")
27
+
}
28
+
29
+
}
30
+
31
+
asyncfunctiongetViewId(accessToken,siteId){
32
+
// This can almost be read off the web page, but note the extra 'sheets' in the middle
33
+
// https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_filtering_and_sorting.htm#filter-expressions has guidance on other ways of finding the right view
0 commit comments