api
API Reference
servejs.NewDir
Creates a new handler to serve static files from a directory.
servejs.NewFS
Creates a new handler to serve static files from an http.FileSystem.
Options
WithEnvAllowlist([]string)WithEnvExposureMode(EnvExposureMode)WithSPAFallback(bool)WithSecurityHeaders(bool)WithMountPath(string)WithLogger(Logger)
See Configuration Options for details.