Skip to content

Commit 8ea42ee

Browse files
fix: resolve lucide-react module resolution for MDX content outside docs app directory
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/03ea1b05-404b-40c7-a907-706e31be7a1c Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent 3042cf5 commit 8ea42ee

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
### Fixed
2929
- **MetadataPlugin driver bridging fallback** — Fixed `MetadataPlugin.start()` so the driver service scan fallback (`driver.*`) is reached when ObjectQL returns `null` (not just when it throws). Previously, `setDatabaseDriver` was never called in environments where ObjectQL was not loaded.
3030
- **Auth trustedOrigins test alignment** — Updated `plugin-auth` tests to match the auto-default `http://localhost:*` behavior added in PR #1152 for better-auth CORS support. When no `trustedOrigins` are configured, the implementation correctly defaults to trusting all localhost ports for development convenience.
31+
- **Docs build: lucide-react module resolution** — Added Turbopack `resolveAlias` in `apps/docs/next.config.mjs` so MDX content files in `content/docs/` (outside the app directory) can resolve `lucide-react`. Turbopack starts module resolution from the file's directory, which doesn't have access to the app's `node_modules/`.
3132
- **Client Hono integration test timeout** — Increased `beforeAll`/`afterAll` hook timeouts in `client.hono.test.ts` from default 10s to 30s to prevent flaky failures in CI.
3233
- **CI: Replace `pnpm/action-setup@v6` with corepack** — Switched all GitHub Actions workflows (`ci.yml`, `lint.yml`, `release.yml`, `validate-deps.yml`, `pr-automation.yml`) from `pnpm/action-setup@v6` to `corepack enable` to fix persistent `ERR_PNPM_BROKEN_LOCKFILE` errors. Corepack reads the exact `packageManager` field from `package.json` (including SHA verification), ensuring the correct pnpm version is used in CI. Also bumped pnpm store cache keys to v3 and added a pnpm version verification step.
3334
- **Broken pnpm lockfile** — Regenerated `pnpm-lock.yaml` from scratch to fix `ERR_PNPM_BROKEN_LOCKFILE` ("expected a single document in the stream, but found more") that was causing all CI jobs to fail. The previous merge of PR #1117 only included workflow cache key changes but did not carry over the regenerated lockfile.

apps/docs/next.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ const config = {
99
typescript: {
1010
ignoreBuildErrors: false,
1111
},
12+
turbopack: {
13+
resolveAlias: {
14+
// MDX content lives in ../../content/docs/ (outside the app directory).
15+
// Turbopack resolves modules starting from the file's directory, so it
16+
// can't find packages installed under this app's node_modules/.
17+
// Alias lucide-react so external MDX files can import it.
18+
'lucide-react': './node_modules/lucide-react',
19+
},
20+
},
1221
images: {
1322
remotePatterns: [
1423
{

0 commit comments

Comments
 (0)