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
npm run dev # works
npm run build
npm run preview # does not work
node build # does not work
Logs
SvelteKitError: Not found: /academic-cap+.svg
at new SvelteKitError (/home/projects/github-ilcgem/build/server/index.js:1408:5)
at resolve2 (/home/projects/github-ilcgem/build/server/index.js:4206:18)
at resolve (/home/projects/github-ilcgem/build/server/index.js:4038:34)
at #options.hooks.handle (/home/projects/github-ilcgem/build/server/index.js:4271:71)
at respond (/home/projects/github-ilcgem/build/server/index.js:4036:43) {
status: 404,
text: 'Not Found'
}
Reproducible using the example provided in the Polka repository.
workspace
┣ public
┃ ┣ a+.txt - 404 Not Found
┃ ┗ a.txt -- Served
┣ index.js
┣ package.json
┗ pnpm-lock.yaml
// index.jsconstpolka=require('polka');const{PORT=3000}=process.env;constserve=require('sirv')('public');polka().use(serve).get('/health',(req,res)=>{res.end('OK');}).listen(PORT,()=>{console.log(`> Running on localhost:${PORT}`);});
Describe the bug
Served in
vite dev
Former is not served in
vite preview
andnode build
Reproduction
https://stackblitz.com/edit/github-ilcgem?file=src%2Froutes%2F%2Bpage.svelte
Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: