Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-8795 chore: upgrade apps/web fumadocs to match apps/docs and drop --webpack (#10152)

Jiayuan Zhangf006fc4126fd
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 7f8bfd15c3..5a90e36bab 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -14,9 +14,9 @@
},
"dependencies": {
"@multica/ui": "workspace:*",
- "fumadocs-core": "^16.17.8",
- "fumadocs-mdx": "^15.4.10",
- "fumadocs-ui": "^16.17.8",
+ "fumadocs-core": "catalog:",
+ "fumadocs-mdx": "catalog:",
+ "fumadocs-ui": "catalog:",
"mermaid": "catalog:",
"next": "catalog:",
"next-themes": "catalog:",
diff --git a/apps/web/lib/use-case-locale-fallback.test.ts b/apps/web/lib/use-case-locale-fallback.test.ts
index 118f8b47c8..85d43084a5 100644
--- a/apps/web/lib/use-case-locale-fallback.test.ts
+++ b/apps/web/lib/use-case-locale-fallback.test.ts
@@ -10,7 +10,7 @@ vi.mock("fumadocs-core/source", () => ({
loader: vi.fn(() => mockUseCasesSource),
}));
-vi.mock("@/.source", () => ({
+vi.mock("@/.source/server", () => ({
useCases: {
toFumadocsSource: vi.fn(() => ({})),
},
diff --git a/apps/web/lib/use-cases-source.ts b/apps/web/lib/use-cases-source.ts
index fc65df23f5..e3fc954478 100644
--- a/apps/web/lib/use-cases-source.ts
+++ b/apps/web/lib/use-cases-source.ts
@@ -1,7 +1,7 @@
import { loader } from "fumadocs-core/source";
import { defineI18n } from "fumadocs-core/i18n";
import type { SupportedLocale } from "@multica/core/i18n";
-import { useCases } from "@/.source";
+import { useCases } from "@/.source/server";
import { mergeUseCasePagesWithEnglishFallback } from "./use-case-locale-fallback";
// Use-case content uses dot-suffixed MDX files (`<slug>.en.mdx`,
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
index 2437bd2d5a..4e1b2e03c9 100644
--- a/apps/web/next.config.ts
+++ b/apps/web/next.config.ts
@@ -97,10 +97,6 @@ const nextConfig: NextConfig = {
},
};
-// fumadocs-mdx@12 is incompatible with Next 16's Turbopack: its loader fails to
-// dynamic-import `.source/source.config.mjs` under the Turbopack Node evaluator
-// (see fumadocs#2658). `dev`/`build` scripts pass `--webpack` to opt out.
-// Drop the flag once fumadocs-mdx ships a Turbopack-compatible loader.
-const withMDX = createMDX() as (config: NextConfig) => NextConfig;
+const withMDX = createMDX();
export default withMDX(nextConfig);
diff --git a/apps/web/package.json b/apps/web/package.json
index c525e6c951..f71a2b63ad 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -4,8 +4,8 @@
"private": true,
"type": "module",
"scripts": {
- "dev": "sh -c 'next dev --webpack --port \"${FRONTEND_PORT:-3000}\"'",
- "build": "next build --webpack",
+ "dev": "sh -c 'next dev --port \"${FRONTEND_PORT:-3000}\"'",
+ "build": "next build",
"start": "next start",
"typecheck": "tsc --noEmit",
"lint": "eslint .",
@@ -19,8 +19,8 @@
"@multica/views": "workspace:*",
"@tanstack/react-query": "catalog:",
"dotenv": "^17.4.1",
- "fumadocs-core": "^15.5.2",
- "fumadocs-mdx": "^12.0.3",
+ "fumadocs-core": "catalog:",
+ "fumadocs-mdx": "catalog:",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a3cdac6cf8..8101902234 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -72,6 +72,15 @@ catalogs:
eslint-plugin-i18next:
specifier: ^6.1.4
version: 6.1.4
+ fumadocs-core:
+ specifier: ^16.17.8
+ version: 16.17.8
+ fumadocs-mdx:
+ specifier: ^15.4.10
+ version: 15.4.10
+ fumadocs-ui:
+ specifier: ^16.17.8
+ version: 16.17.8
i18next:
specifier: ^26.0.8
version: 26.0.8
@@ -358,13 +367,13 @@ importers:
specifier: workspace:*
version: link:../../packages/ui
fumadocs-core:
- specifier: ^16.17.8
+ specifier: 'catalog:'
fumadocs-mdx:
- specifier: ^15.4.10
+ specifier: 'catalog:'
fumadocs-ui:
- specifier: ^16.17.8
+ specifier: 'catalog:'
mermaid:
specifier: 'catalog:'
@@ -645,11 +654,11 @@ importers:
specifier: ^17.4.1
version: 17.4.1
fumadocs-core:
- specifier: ^15.5.2
+ specifier: 'catalog:'
fumadocs-mdx:
- specifier: ^12.0.3
+ specifier: 'catalog:'
next:
specifier: 'catalog:'
@@ -698,7 +707,7 @@ importers:
'@vitejs/plugin-react':
specifier: 'catalog:'
jsdom:
specifier: 'catalog:'
version: 29.0.1(@noble/[email protected])
@@ -713,7 +722,7 @@ importers:
version: '@typescript/[email protected]'
vitest:
specifier: 'catalog:'
packages/core:
dependencies:
@@ -957,7 +966,7 @@ importers:
'@vitejs/plugin-react':
specifier: 'catalog:'
esbuild:
specifier: ^0.25.12
version: 0.25.12
@@ -2432,9 +2441,6 @@ packages:
'@formatjs/[email protected]':
resolution: {integrity: sha512-vPnriihkfK0lzoQGaXq+qXH23VsYyansRTkTgo2aTG0k1NjLFyZimFVdfj4C9JkSE5dm7CEngcQ5TTc1yAyBfQ==}
- '@formatjs/[email protected]':
- resolution: {integrity: sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==}
-
'@formatjs/[email protected]':
resolution: {integrity: sha512-J51dAnynnqJdVUEXidHoIWn+qYve+yNQEgmFk9Dyfr3p0okzm+5QhQ+9QmsMz08+BeWTVpc1HadIiLfZmRYbAQ==}
@@ -2948,10 +2954,6 @@ packages:
resolution: {integrity: sha512-cifvXDhcqMwwTlTK04GBNeIe7yyo28Mfby85QXFe1Yk8nmi36Ab/5UQwptOx84SsoGNRg+EVSjwzfSZMy6pmlw==}
engines: {node: '>=14'}
- '@orama/[email protected]':
- resolution: {integrity: sha512-a61ljmRVVyG5MC/698C8/FfFDw5a8LOIvyOLW5fztgUXqUpc1jOfQzOitSCbge657OgXXThmY3Tk8fpiDb4UcA==}
- engines: {node: '>= 20.0.0'}
-
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-n9uozULWflPqBtdmI8lAabLqGKNgLVNN0ZH8HfgCwpKGNtzRzauB76jTiW/3YLkcA7N1zskpi9GdVnZuu1SAvg==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -4382,9 +4384,6 @@ packages:
resolution: {integrity: sha512-UM7ShlA8oz0OWxLLO8BmO9Ip6fVqdkt8yF0EH7nOCqHfrx1eEAzF0ZUVK7L+I8NEgeu1PEWSRlxaiPPeCb4iDg==}
engines: {node: '>=20'}
- '@shikijs/[email protected]':
- resolution: {integrity: sha512-GepKJxXHbXFfAkiZZZ+4V7x71Lw3s0ALYmydUxJRdvpKjSx9FOMSaunv6WRLFBXR6qjYerUq1YZQno+2gLEPwA==}
-
'@shikijs/[email protected]':
resolution: {integrity: sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==}
@@ -4396,9 +4395,6 @@ packages:
resolution: {integrity: sha512-zGb87H3UBbpuI4yoh5UguB1XbU+2BDU3kflM7UfZ+Cy2hWo9lBtqjSVK20gmLY6ukYl040hAypGXMgud9vul8Q==}
engines: {node: '>=20'}
- '@shikijs/[email protected]':
- resolution: {integrity: sha512-F9msZVxdF+krQNSdQ4V+Ja5QemeAoTQ2jxt7nJCwhDsdF1JWS3KxIQXA3lQbyKwS3J61oHRUSv4jYWv3CkaKTQ==}
-
'@shikijs/[email protected]':
resolution: {integrity: sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==}
@@ -6001,10 +5997,6 @@ packages:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
- resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}
- engines: {node: '>= 14.16.0'}
-
resolution: {integrity: sha512-Ec2Z7wpcKBiMpR7DxteoqS/sq5G5d2A4fpxzPv6+fD7xNNdrTghn7L11YwV5EN1B3i72Erc3XVT5FkWIDx90+A==}
engines: {node: '>= 22.22'}
@@ -7536,44 +7528,6 @@ packages:
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
- resolution: {integrity: sha512-hyJtKGuB2J/5y7tDfI1EnGMKlNbSXM5N5cpwvgCY0DcBJwFMDG/GpSpaVRzh3aWy67pAYDZFIwdtbKXBa/q5bg==}
- peerDependencies:
- '@mixedbread/sdk': ^0.19.0
- '@oramacloud/client': 1.x.x || 2.x.x
- '@tanstack/react-router': 1.x.x
- '@types/react': ^19.2.0
- algoliasearch: 5.x.x
- lucide-react: '*'
- next: 14.x.x || 15.x.x
- react: 18.x.x || 19.x.x
- react-dom: 18.x.x || 19.x.x
- react-router: 7.x.x
- waku: ^0.26.0
- peerDependenciesMeta:
- '@mixedbread/sdk':
- optional: true
- '@oramacloud/client':
- optional: true
- '@tanstack/react-router':
- optional: true
- '@types/react':
- optional: true
- algoliasearch:
- optional: true
- lucide-react:
- optional: true
- next:
- optional: true
- react:
- optional: true
- react-dom:
- optional: true
- react-router:
- optional: true
- waku:
- optional: true
-
resolution: {integrity: sha512-6MCVT2gy5i2U8i7MLQEy6eImd5/AJ69zzg3XvuHQmPi0w/V2u5QTTfK8dLLSfxniQU7obs9nSpzh+adEEL1QUQ==}
peerDependencies:
@@ -7642,25 +7596,6 @@ packages:
zod:
optional: true
- resolution: {integrity: sha512-OYqbHSmzkejG+iUMlZJJOitaVbCgBdo/REc/9Sq1WaZ1vq6bH9PCFU0cKJlRdHbQSGRfVg5EJJy5uKy5+iNFGQ==}
- hasBin: true
- peerDependencies:
- '@fumadocs/mdx-remote': ^1.4.0
- fumadocs-core: ^14.0.0 || ^15.0.0
- next: ^15.3.0
- react: '*'
- vite: 6.x.x || 7.x.x
- peerDependenciesMeta:
- '@fumadocs/mdx-remote':
- optional: true
- next:
- optional: true
- react:
- optional: true
- vite:
- optional: true
-
resolution: {integrity: sha512-myAtUxJ174py2fK5l4m608zfVEPQzB8UpjahcdegJWt7C1AfcsTn+M7aBziSShYgn9UvrBZJMLR8PgPPk6c+Sg==}
hasBin: true
@@ -7914,9 +7849,6 @@ packages:
resolution: {integrity: sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==}
- resolution: {integrity: sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==}
-
resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==}
@@ -8050,11 +7982,6 @@ packages:
resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}
engines: {node: '>= 4'}
- resolution: {integrity: sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w==}
- engines: {node: '>=16.x'}
- hasBin: true
-
resolution: {integrity: sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==}
@@ -9444,10 +9371,6 @@ packages:
resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-tt6PvKu4WyzPwWUzy/hvPFqn+uwXO0K1ZHka8az3NnrhWJDmSqI8ncWq0fkL0k/lmmi5tAC11FXwXuh0rFbt1A==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
-
resolution: {integrity: sha512-K1HmQeZT2HrjpsR6KgqbN2FAXL2NrJJmNUSD9ck7HGTVu1JKXox8n9SB+tjbU8m8JGLF4OscrroPepew/L7/Xw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -10291,10 +10214,6 @@ packages:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
- resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}
- engines: {node: '>= 14.18.0'}
-
resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==}
engines: {node: '>= 20.19.0'}
@@ -13202,10 +13121,6 @@ snapshots:
'@formatjs/[email protected]': {}
- '@formatjs/[email protected]':
- dependencies:
- tslib: 2.8.1
-
'@formatjs/[email protected]':
dependencies:
'@formatjs/fast-memoize': 3.1.2
@@ -13452,7 +13367,7 @@ snapshots:
dependencies:
'@types/estree': 1.0.8
'@types/estree-jsx': 1.0.5
- '@types/hast': 3.0.4
+ '@types/hast': 3.0.5
'@types/mdx': 2.0.13
acorn: 8.16.0
collapse-white-space: 2.1.0
@@ -13692,8 +13607,6 @@ snapshots:
'@opentelemetry/[email protected]': {}
- '@orama/[email protected]': {}
-
'@oxc-parser/[email protected]':
optional: true
@@ -15008,15 +14921,6 @@ snapshots:
'@shikijs/vscode-textmate': 10.0.2
'@types/hast': 3.0.5
- '@shikijs/[email protected]':
- dependencies:
- '@shikijs/types': 3.23.0
- '@types/hast': 3.0.4
- hast-util-to-string: 3.0.1
- shiki: 3.23.0
- unified: 11.0.5
- unist-util-visit: 5.1.0
-
'@shikijs/[email protected]':
dependencies:
'@shikijs/types': 3.23.0
@@ -15029,11 +14933,6 @@ snapshots:
dependencies:
'@shikijs/types': 4.5.0
- '@shikijs/[email protected]':
- dependencies:
- '@shikijs/core': 3.23.0
- '@shikijs/types': 3.23.0
-
'@shikijs/[email protected]':
dependencies:
'@shikijs/vscode-textmate': 10.0.2
@@ -16128,17 +16027,17 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@rolldown/pluginutils': 1.0.0-rc.7
optionalDependencies:
babel-plugin-react-compiler: 1.0.0
dependencies:
'@rolldown/pluginutils': 1.0.0-rc.7
optionalDependencies:
babel-plugin-react-compiler: 1.0.0
@@ -16813,10 +16712,6 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
- dependencies:
- readdirp: 4.1.2
-
dependencies:
readdirp: 5.1.1
@@ -18771,33 +18666,39 @@ snapshots:
optional: true
dependencies:
- '@formatjs/intl-localematcher': 0.6.2
- '@orama/orama': 3.1.18
- '@shikijs/rehype': 3.23.0
- '@shikijs/transformers': 3.23.0
+ '@fumari/image-size': 0.1.1
+ estree-util-value-to-estree: 3.5.0
github-slugger: 2.0.0
+ hast-util-from-dom: 5.0.1
hast-util-to-estree: 3.1.3
- hast-util-to-jsx-runtime: 2.3.6
- image-size: 2.0.2
- negotiator: 1.0.0
- npm-to-yarn: 3.0.1
- path-to-regexp: 8.3.0
- react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ mdast-util-mdx: 3.0.0
+ micromark: 4.0.3
+ micromark-extension-gfm-table: 2.1.2
+ npm-to-yarn: 3.2.0
remark: 15.0.1
remark-gfm: 4.0.1
remark-rehype: 11.1.2
scroll-into-view-if-needed: 3.1.0
- shiki: 3.23.0
- unist-util-visit: 5.1.0
+ shiki: 4.5.0
+ tinyglobby: 0.2.17
+ unified: 11.0.5
+ vfile: 6.0.3
+ yaml: 2.9.1
+ zbsearch: 4.0.1
optionalDependencies:
+ '@mdx-js/mdx': 3.1.1
+ '@types/estree-jsx': 1.0.5
+ '@types/hast': 3.0.5
+ '@types/mdast': 4.0.4
'@types/react': 19.2.14
lucide-react: 1.61.0(@types/[email protected])([email protected])
react: 19.2.3
react-dom: 19.2.3([email protected])
+ zod: 4.3.6
transitivePeerDependencies:
- supports-color
@@ -18837,28 +18738,34 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@mdx-js/mdx': 3.1.1
'@standard-schema/spec': 1.1.0
- chokidar: 4.0.3
- esbuild: 0.25.12
+ chokidar: 6.0.0
+ esbuild: 0.28.2
estree-util-value-to-estree: 3.5.0
- js-yaml: 4.1.1
- lru-cache: 11.2.7
- mdast-util-to-markdown: 2.1.2
+ github-slugger: 2.0.0
+ magic-string: 1.4.3
+ mdast-util-mdx: 3.0.0
picocolors: 1.1.1
- remark-mdx: 3.1.1
- remark-parse: 11.0.0
- tinyexec: 1.0.4
- tinyglobby: 0.2.15
+ picomatch: 4.0.7
+ tinyexec: 1.3.1
+ tinyglobby: 0.2.17
unified: 11.0.5
- unist-util-visit: 5.1.0
- zod: 4.3.6
+ unist-util-remove-position: 5.0.0
+ vfile: 6.0.3
+ yaml: 2.9.1
+ yuku-analyzer: 0.19.0
+ zod: 4.6.7
optionalDependencies:
+ '@types/mdast': 4.0.4
+ '@types/mdx': 2.0.13
+ '@types/react': 19.2.14
react: 19.2.3
transitivePeerDependencies:
- supports-color
@@ -19164,7 +19071,7 @@ snapshots:
dependencies:
'@types/estree': 1.0.8
'@types/estree-jsx': 1.0.5
- '@types/hast': 3.0.4
+ '@types/hast': 3.0.5
comma-separated-tokens: 2.0.3
devlop: 1.1.0
estree-util-attach-comments: 3.0.0
@@ -19225,10 +19132,6 @@ snapshots:
web-namespaces: 2.0.1
zwitch: 2.0.4
- dependencies:
- '@types/hast': 3.0.4
-
dependencies:
'@types/hast': 3.0.4
@@ -19369,8 +19272,6 @@ snapshots:
-
@@ -21257,8 +21158,6 @@ snapshots:
path-key: 4.0.0
unicorn-magic: 0.3.0
-
@@ -22264,8 +22163,6 @@ snapshots:
dependencies:
picomatch: 2.3.1
-
@@ -22408,7 +22305,7 @@ snapshots:
dependencies:
'@types/estree': 1.0.8
- '@types/hast': 3.0.4
+ '@types/hast': 3.0.5
hast-util-to-estree: 3.1.3
transitivePeerDependencies:
- supports-color
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index eb4a142d3d..88fea290a2 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -27,6 +27,9 @@ catalog:
clsx: ^2.1.1
cmdk: ^1.1.1
eslint-plugin-i18next: ^6.1.4
+ fumadocs-core: ^16.17.8
+ fumadocs-mdx: ^15.4.10
+ fumadocs-ui: ^16.17.8
i18next: ^26.0.8
jsdom: ^29.0.1
katex: ^0.16.45
diff --git a/scripts/check-dependency-catalog.mjs b/scripts/check-dependency-catalog.mjs
index 1ca82defb0..0f4f1e775f 100644
--- a/scripts/check-dependency-catalog.mjs
+++ b/scripts/check-dependency-catalog.mjs
@@ -29,14 +29,6 @@ export const allowlist = new Map([
"@vitejs/plugin-react",
"apps/desktop bundles with plugin-react 5; moving it to the catalog's 6 changes how pnpm resolves vite for electron-vite and needs its own verification.",
],
- [
- "fumadocs-core",
- "apps/web is on fumadocs 15 and apps/docs on 16; aligning them needs an apps/web fumadocs upgrade.",
- ],
- [
- "fumadocs-mdx",
- "apps/web is on fumadocs-mdx 12 and apps/docs on 15; aligning them needs an apps/web fumadocs upgrade.",
- ],
]);
const unquote = (value) => value.trim().replace(/^(['"])(.*)\1$/, "$2");