-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: sendFile without serving anything #20
Comments
Hi! Truly this plugin was born to serve static files in development mode: nodejs is not so good on serving static files. Use a reverse proxy like Anyway we can split this plugin in order to add |
This would be awesome! 👍 |
Would you like to send a PR? Basically you should add an option that makes https://github.com/fastify/fastify-static/blob/master/index.js#L94-L96 optional. |
@mcollina Here you are 😄 |
On my site each user has subdomain:
I can't just tell
serve this folder
, I first retrieve username (homer), then serve his folder (users/homer). Ideally I would like to usereply.sendFile(path)
, but couldn't do it without specifyingroot
folder (and serving file I don't want to server). Would be nice to havereply.sendFile
separately from everything else.Thanks!
The text was updated successfully, but these errors were encountered: