class

Hwaro::Models::ServeConfig

Inherits Reference / Object

Serve (development server) configuration

Currently used to configure custom response headers that are injected on every request while running hwaro serve. This makes it easy to reproduce production reverse-proxy / CDN header behaviour locally.

Constructors

Instance methods

fast

When true, hwaro serve will behave as if --fast was passed (skips heavy OG image generation and image processing by default). CLI flags can still override this.

Source
fast=(fast : Bool)

When true, hwaro serve will behave as if --fast was passed (skips heavy OG image generation and image processing by default). CLI flags can still override this.

Source
headers

Custom HTTP response headers applied to all responses during hwaro serve (including 404s, redirects, and static assets).

Source
headers=(headers : Hash(String, String))

Custom HTTP response headers applied to all responses during hwaro serve (including 404s, redirects, and static assets).

Source