Skip to content

Commit d8b8c07

Browse files
authored
Merge branch 'cloudflare:production' into production
2 parents 8c6eb82 + 18168a9 commit d8b8c07

File tree

44 files changed

+2253
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2253
-168
lines changed

.github/actions/issue-label-assign/index.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/issue-label-assign/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,7 @@ import * as codeOwnersUtils from "codeowners-utils";
9696
}
9797
}
9898

99-
// Add "date labels to issues"
100-
101-
const formattedDate: string = new Date().toLocaleDateString("en-US", {
102-
month: "long",
103-
year: "numeric",
104-
});
105-
106-
newLabels.add(formattedDate);
99+
console.log(newLabels);
107100

108101
if (newLabels.size > 0) {
109102
await client.rest.issues.addLabels({

.github/actions/label-products/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/label-products/index.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function getChangedSubFolders(files: any[]): string[] {
2525
if (topLevelFolder === "docs") {
2626
const subFolder = getSubFolder(path);
2727
changedFolders.add(subFolder);
28+
} else if (topLevelFolder === "changelog") {
29+
changedFolders.add("changelog");
2830
}
2931
}
3032

@@ -101,15 +103,6 @@ async function labelPRSubFolders(
101103
}
102104
}
103105

104-
// Add "date labels to PRs"
105-
106-
const formattedDate: string = new Date().toLocaleDateString("en-US", {
107-
month: "long",
108-
year: "numeric",
109-
});
110-
111-
newLabels.push(formattedDate);
112-
113106
if (newLabels.length > 0) {
114107
await octokit.rest.issues.addLabels({
115108
...repo,

.github/workflows/publish-production.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
name: Build
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
ENABLE_LAST_MOD_IN_SITEMAP: true
3132
- run: npx wrangler deploy
3233
name: Deploy to Cloudflare Workers
3334
env:

astro.config.ts

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import liveCode from "astro-live-code";
66
import starlightLinksValidator from "starlight-links-validator";
77
import starlightScrollToTop from "starlight-scroll-to-top";
88
import icon from "astro-icon";
9-
import sitemap from "@astrojs/sitemap";
9+
import sitemap, { type SitemapItem } from "@astrojs/sitemap";
1010
import react from "@astrojs/react";
1111

1212
import { readdir } from "fs/promises";
@@ -59,7 +59,10 @@ async function autogenStyles() {
5959
const sidebar = await autogenSections();
6060
const customCss = await autogenStyles();
6161

62-
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
62+
const RUN_LINK_CHECK =
63+
process.env.RUN_LINK_CHECK?.toLowerCase() === "true" || false;
64+
const ENABLE_LAST_MOD_IN_SITEMAP =
65+
process.env.ENABLE_LAST_MOD_IN_SITEMAP?.toLowerCase() === "true";
6366

6467
/**
6568
* Get the last Git modification date for a file
@@ -107,6 +110,22 @@ function urlToFilePath(url: string): string | null {
107110
}
108111
}
109112

113+
function addLastModDate(item: SitemapItem) {
114+
const filePath = urlToFilePath(item.url);
115+
if (filePath) {
116+
const gitDate = getGitLastModified(filePath);
117+
if (gitDate) {
118+
item.lastmod = gitDate;
119+
}
120+
} else {
121+
console.warn(
122+
`[sitemap] Could not find last modified for ${item.url} - setting to now`,
123+
);
124+
item.lastmod = new Date().toISOString();
125+
}
126+
return item;
127+
}
128+
110129
// https://astro.build/config
111130
export default defineConfig({
112131
site: "https://developers.cloudflare.com",
@@ -176,7 +195,7 @@ export default defineConfig({
176195
customCss,
177196
pagination: false,
178197
plugins: [
179-
...(runLinkCheck
198+
...(RUN_LINK_CHECK
180199
? [
181200
starlightLinksValidator({
182201
errorOnInvalidHashes: false,
@@ -242,19 +261,7 @@ export default defineConfig({
242261
return true;
243262
},
244263
serialize(item) {
245-
const filePath = urlToFilePath(item.url);
246-
if (filePath) {
247-
const gitDate = getGitLastModified(filePath);
248-
if (gitDate) {
249-
item.lastmod = gitDate;
250-
}
251-
} else {
252-
console.warn(
253-
`[sitemap] Could not find last modified for ${item.url} - setting to now`,
254-
);
255-
item.lastmod = new Date().toISOString();
256-
}
257-
return item;
264+
return ENABLE_LAST_MOD_IN_SITEMAP ? addLastModDate(item) : item;
258265
},
259266
}),
260267
react(),
383 KB
Loading

src/content/changelog/email-security-cf1/2025-05-15-open-links-browser-isolation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ From **Investigation**, go to **View details**, and look for the **Links identif
1313
To use this feature, you must:
1414

1515
- Enable **Clientless Web Isolation** in your Zero Trust settings.
16-
- Have **Browser Isolation (BISO)** seats assigned.
16+
- Have **Browser Isolation (RBI)** seats assigned.
1717

1818
For more details, refer to our [setup guide](/cloudflare-one/remote-browser-isolation/setup/clientless-browser-isolation/).
1919

0 commit comments

Comments
 (0)