Skip to content

Commit b1f9cfd

Browse files
[Admin] (preprocessor) Handle Local option (#2070)
1 parent 3e5fd1e commit b1f9cfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

generate-docs/scripts/preprocessor.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ tryCatch(async () => {
4848
urlToCopyOfficeRuntimeFrom = "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/office-runtime/index.d.ts";
4949
break;
5050
case "CDN":
51-
urlToCopyOfficeJsFrom = "https://appsforoffice.officeapps.live.com/lib/1.1/hosted/office.d.ts";
52-
urlToCopyPreviewOfficeJsFrom = "https://appsforoffice.officeapps.live.com/lib/beta/hosted/office.d.ts";
51+
urlToCopyOfficeJsFrom = "https://res-sdp.public.cdn.office.net/appsforoffice/_1cdn_bucketedcontent/lib/1.1/hosted/office.d.ts";
52+
urlToCopyPreviewOfficeJsFrom = "https://res-sdp.public.cdn.office.net/appsforoffice/_1cdn_bucketedcontent/lib/beta/hosted/office.d.ts";
5353
urlToCopyCustomFunctionsRuntimeFrom = "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/custom-functions-runtime/index.d.ts";
5454
urlToCopyOfficeRuntimeFrom = "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/office-runtime/index.d.ts";
5555
break;
56-
// Note: using "appsforoffice.officeapps.live.com" instead of "appsforoffice.microsoft.com"
56+
// Note: Using 1CDN instead of "appsforoffice.microsoft.com"
5757
// to avoid being redirected to the EDOG environment on corpnet.
5858
// If we ever want to generate not just public d.ts but also "office-with-first-party.d.ts",
5959
// replace the filename.
60+
case "Local":
61+
break;
6062
default:
6163
throw new Error(`Invalid prompt selection: ${sourceChoice}`);
6264
}

0 commit comments

Comments
 (0)