Skip to content

Commit 4a4743e

Browse files
adriensclaude
andcommitted
fix(site): fix root path resolution for Astro 6 prerendering
import.meta.url resolves to the built chunk path in Astro 6 (site/dist/.prerender/chunks/), making the old ../../.. depth land in site/ instead of the repo root. Use process.cwd() which is always site/ when astro build runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e82f455 commit 4a4743e

3 files changed

Lines changed: 49 additions & 149 deletions

File tree

0 commit comments

Comments
 (0)