From 7287132c00fdc067bcc92883c85615f33ef067f9 Mon Sep 17 00:00:00 2001 From: Seung Park Date: Thu, 20 Mar 2025 09:24:07 -0400 Subject: [PATCH 1/3] add back credentials as staging requires this --- src/utils/snooty-data-api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/snooty-data-api.ts b/src/utils/snooty-data-api.ts index 88dc80dde..aef159676 100644 --- a/src/utils/snooty-data-api.ts +++ b/src/utils/snooty-data-api.ts @@ -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) { From 31a8950eca71c12085cc0b89986f579ef451c20c Mon Sep 17 00:00:00 2001 From: Seung Park Date: Thu, 20 Mar 2025 09:24:48 -0400 Subject: [PATCH 2/3] update netlify toml --- netlify.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From d4d4c2b02c5d310c7fa2f4f9c1b123e9f43d020c Mon Sep 17 00:00:00 2001 From: Seung Park Date: Thu, 20 Mar 2025 09:25:18 -0400 Subject: [PATCH 3/3] default to staging url --- src/utils/snooty-data-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/snooty-data-api.ts b/src/utils/snooty-data-api.ts index aef159676..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/'; } }