Allow static dotfiles to be served #20282
andreasg123
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature request
Please create means to pass options to send when serving static files. In particular, I would like to pass
{dotfiles: allow}(and not use the default that is similar to'ignore', causing a 404 error).Currently,
sendis called without theoptionsparameter: https://github.com/vercel/next.js/blob/master/packages/next/next-server/server/serve-static.ts#L10Is your feature request related to a problem? Please describe.
For development, I need to serve static OME-Zarr images. Each image is represented by a directory structure containing files such as
.zgroupand.zattrs: https://ngff.openmicroscopy.org/0.1/#image-layoutWithout a means to serve dotfiles, those images cannot be served.
Describe the solution you'd like
I would like to have a property
send_optionsinnext.config.jsthat is passed as a third parameter tosend.All reactions