fix(docs-site): add docs index redirect, test, and trim Accept media type

Redirect bare /docs to the introduction page with proper metadata
resolution. Add a test for the redirect. Trim the media type in the
Accept header parser so whitespace around semicolons does not break
markdown content negotiation. Add a test script to package.json.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Luca Martial 2026-05-11 20:37:28 -07:00
parent e79caa8fb9
commit b4a302edfa
4 changed files with 33 additions and 5 deletions

View file

@ -6,7 +6,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"test": "node --test tests/*.test.mjs"
},
"dependencies": {
"fumadocs-core": "15.7.13",