Skip to content

Commit 2dad1a1

Browse files
Include CODE_OF_CONDUCT.md in Netlify sparse checkout
The community page reads this file at build time; without it in the clone list, production showed Content not found.
1 parent 236049a commit 2dad1a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/clone-devstackbox.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (fs.existsSync(target)) {
1313

1414
const repo = process.env.DEVSTACKBOX_GIT_URL ?? "https://github.com/DevStackBox/DevStackBox.git";
1515

16-
console.log("Cloning DevStackBox (docs only)...");
16+
console.log("Cloning DevStackBox (docs + policy files)...");
1717
execSync(
1818
`git clone --depth 1 --filter=blob:none --sparse ${repo} devstackbox`,
1919
{ cwd: websiteRoot, stdio: "inherit" },
@@ -25,7 +25,7 @@ execSync("git sparse-checkout init --no-cone", {
2525
});
2626

2727
execSync(
28-
"git sparse-checkout set docs /CHANGELOG.md /PRIVACY.md /SECURITY.md /LICENSE",
28+
"git sparse-checkout set docs /CHANGELOG.md /PRIVACY.md /SECURITY.md /LICENSE /CODE_OF_CONDUCT.md",
2929
{ cwd: target, stdio: "inherit" },
3030
);
3131

0 commit comments

Comments
 (0)