Dev Tools · 1h ago
Astro 5 glob loader path bug in pnpm monorepos
Astro 5's glob loader resolves relative base paths from process.cwd() at build time, not from the config file's location. In a pnpm monorepo, building from the workspace root causes relative paths to resolve incorrectly, silently returning empty collections. This leads to missing content on pages without any error or warning.
Meridian48 take
A subtle but dangerous footgun for monorepo setups that could cause silent content loss in production builds.
Read the full reporting
What I learned about Astro 5 glob loader path resolution in a pnpm monorepo →
DEV Community
astro-5monorepo-bug