OptionalassetOptionalcacheCan be used to define the "Cache-Control" header for "public" assets.
OptionaldefaultCan be used to set headers that should always be sent in their respective use-case (Asset, SSR).
OptionaldotSpecifies which "dot files" (directories or files starting with a .) can be served.
OptionalpreControls whether the static assets should be pre-compressed or if they should be dynamically compressed at runtime.
OptionalrequestCan be defined to control which requests the server should handle.
OptionalroutesOptionally specifies routes which responses should not be compressed. All routes must follow the Fastify path syntax.
OptionalserverCan be defined to configure the server.
OptionalsupportedControls which compression algorithms are available.
Controls which files are processed for asset pre-compression.