We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
public/
File must be regular or FIFO
import { Elysia } from 'elysia'; import { staticPlugin } from '@elysiajs/static'; new Elysia().use(staticPlugin()).listen(8080);
public
nested
http://localhost:8080/public/
http://localhost:8080/public/nested/
EINVAL: File must be regular or FIFO path: "public/" syscall: "sendfile" errno: -22 GET - http://localhost:8080/public/ failed
The text was updated successfully, but these errors were encountered:
as a workaround one can add ignore patterns for each folder and subfolder like:
Folder structure:
staticPlugin({ ignorePatterns: [/public\/?/, /public\/nested\/?/] });
make sure to include the default patterns too:
elysia-static/src/index.ts
Line 29 in 4032231
Sorry, something went wrong.
Same for me
Successfully merging a pull request may close this issue.
Code to reproduce
Folder structure
public
nested
Navigate to
http://localhost:8080/public/
http://localhost:8080/public/nested/
Error
Environment
The text was updated successfully, but these errors were encountered: