Variable

isDev

let isDev: Bool

Whether the site is being served by saga dev.

This is true when the SAGA_DEV environment variable is set (which saga dev does automatically). Use it to skip expensive work during development:

.postProcess { html, _ in
  isDev ? html : minifyHTML(html)
}

Mentioned In