diff --git a/netlify.toml b/netlify.toml index acdaf398d..386f78290 100644 --- a/netlify.toml +++ b/netlify.toml @@ -9,4 +9,5 @@ command = ". ./build.sh $REPO_NAME $PARSER_VERSION" ORG_NAME = "10gen" REPO_NAME = "cloud-docs" BRANCH_NAME = "master" -PARSER_VERSION = "0.18.11" \ No newline at end of file +PARSER_VERSION = "0.18.11" +GATSBY_OFFLINE_DOWNLOAD_UI="true" \ No newline at end of file diff --git a/src/utils/snooty-data-api.ts b/src/utils/snooty-data-api.ts index 88dc80dde..7c358c85f 100644 --- a/src/utils/snooty-data-api.ts +++ b/src/utils/snooty-data-api.ts @@ -12,7 +12,7 @@ function getBaseUrl(snootyEnv: string) { case 'dotcomstg': return 'https://snooty-data-api.docs.staging.corp.mongodb.com/'; default: - return 'https://snooty-data-api.mongodb.com/'; + return 'https://snooty-data-api.docs.staging.corp.mongodb.com/'; } } @@ -41,7 +41,9 @@ export type Repo = { export const getAllRepos = async () => { const url: string = new URL('/projects', BASE_URL).toString(); try { - const res = await fetch(url); + const res = await fetch(url, { + credentials: 'include', + }); const repos: Repo[] = (await res.json())['data']; return repos; } catch (e) {