You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found what I think is related code in src/core/build/static-build.ts line 61-64.
Not sure how to access vite settings/config.
// Lines 61-64// Empty out the dist folder, if needed. Vite has a config for doing this// but because we are running 2 vite builds in parallel, that would cause a race// condition, so we are doing it ourselvesemptyDir(settings.config.outDir,newSet('.git'));
Also this typescript error.... Not sure why it'd be erroring , and why outDir isn't in the typescript here. Same thing for settings.config.output in other places in the file.
What version of
astro
are you using?2.0.5
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Would like to prevent astro from clearing out
/dist
onastro build
.Needed for caching certain files/folders in
/dist
in certain projects.Just need to support the
vite.build.emptyOutDir
in the astro config.Link to Minimal Reproducible Example
trust
Participation
The text was updated successfully, but these errors were encountered: