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
dev server is fine but "build" fails when copying the public folder with:
"ENOENT: no such file or directory, copyFile '/home/projects/github-4qjebp/public/assets/logo.svg' -> '/home/projects/github-4qjebp/dist/client/assets/logo.svg'"
Reason is CopyFiles does not create the required subfolder (eg like "mkdir -p")
Sorry not minimal but this is where I hit the problem. I checked on local too. Build makes little in stackblitz but currently that's the only way to create a SSR endpoint. I hope this will change so can just "dev" without "build" step. Dito Netlify functions so can run locally
…stro#3037)
* Fix SSR static build public file copying
* chore: update lockfile
* remove dirname and use URL constructor
* Cleanup test and actually test what it says it tests
Co-authored-by: Nate Moore <[email protected]>
What version of
astro
are you using?latest
What package manager are you using?
npm
What operating system are you using?
linux (wsl)
Describe the Bug
With https://stackblitz.com/edit/github-4qjebp?file=astro.config.mjs&on=stackblitz
dev server is fine but "build" fails when copying the public folder with:
"ENOENT: no such file or directory, copyFile '/home/projects/github-4qjebp/public/assets/logo.svg' -> '/home/projects/github-4qjebp/dist/client/assets/logo.svg'"
Reason is CopyFiles does not create the required subfolder (eg like "mkdir -p")
Sorry not minimal but this is where I hit the problem. I checked on local too. Build makes little in stackblitz but currently that's the only way to create a SSR endpoint. I hope this will change so can just "dev" without "build" step. Dito Netlify functions so can run locally
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-4qjebp?file=astro.config.mjs&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: