Skip to content

Commit 1601d0c

Browse files
lpcoxCopilotCopilot
authored
fix(docs-site): migrate to astro v6 content collections config (#6451)
* fix(docs-site): migrate to astro v6 content collections config Astro v6 removed legacy content collections. 'astro check'/'astro build' failed with LegacyContentConfigError because the config lived at src/content/config.ts without a collection loader. - Move src/content/config.ts -> src/content.config.ts - Add Starlight docsLoader() to the docs collection Verified: 'npm run build' (astro check && astro build) now completes. * fix(deps): bump brace-expansion to 5.0.7 to fix ReDoS advisory Adds a brace-expansion >=5.0.7 override to resolve GHSA-3jxr-9vmj-r5cp (DoS via exponential-time expansion of consecutive non-expanding {} groups), which was failing the 'Audit Main Package' npm audit --audit-level=high gate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7ef9f0e7-1882-478d-90c0-6e4d42313685 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 37ae38e commit 1601d0c

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineCollection } from 'astro:content';
2+
import { docsLoader } from '@astrojs/starlight/loaders';
23
import { docsSchema } from '@astrojs/starlight/schema';
34

45
export const collections = {
5-
docs: defineCollection({ schema: docsSchema() }),
6+
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
67
};

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
},
8181
"overrides": {
8282
"test-exclude": "^7.0.1",
83-
"minimatch": ">=10.2.1"
83+
"minimatch": ">=10.2.1",
84+
"brace-expansion": ">=5.0.7"
8485
},
8586
"engines": {
8687
"node": ">=20.19.0"

0 commit comments

Comments
 (0)