Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
PARSER_VERSION = "0.18.11"
GATSBY_OFFLINE_DOWNLOAD_UI="true"
6 changes: 4 additions & 2 deletions src/utils/snooty-data-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
}
}

Expand Down Expand Up @@ -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) {
Expand Down
Loading