(serve_static: ServeStaticFactory, options?: { root?: string | undefined; spa_fallback?: string | undefined; is_spa_route?: ((path: string) => boolean) | undefined; } | undefined): MiddlewareHandler[] import {create_static_middleware} from '@fuzdev/fuz_app/server/static.js'; Create static file serving middleware for SvelteKit static builds.
Returns an array of middleware handlers to register on '/*'.
serve_static
runtime-specific serveStatic factory
type ServeStaticFactory
options?
optional root directory and SPA fallback path
type
{ root?: string | undefined; spa_fallback?: string | undefined; is_spa_route?: ((path: string) => boolean) | undefined; }optional
returns
MiddlewareHandler[]