Astro Info
Astro v7.0.6
Vite v8.1.3
Node v26.4.0
System Windows (x64)
Package Manager npm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When npm run build under a symbol/junction link of a Astro project, inline CSS and CSS files, together with CSS file links, will be missing, at least on Windows.
Reproduce PowerShell script:
npm create astro@latest -- --template portfolio
# Name the project 'test'
cd test
npm run build
mv dist dist-baseline
cd ..
# Junction, symlink works too but requires sudo
cmd /c mklink /J linked test
cd linked
npm run build
BaseLayout.*.css is missing:

Inline CSS and CSS file link is missing:

What's the expected result?
CSS works as normal.
Link to Minimal Reproducible Example
StackBlitz/Git doesn't support symlink (on Windows). See above script.
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When
npm run buildunder a symbol/junction link of a Astro project, inline CSS and CSS files, together with CSS file links, will be missing, at least on Windows.Reproduce PowerShell script:
BaseLayout.*.cssis missing:Inline CSS and CSS file link is missing:

What's the expected result?
CSS works as normal.
Link to Minimal Reproducible Example
StackBlitz/Git doesn't support symlink (on Windows). See above script.
Participation