AbsintheAltair.Assets (absinthe_altair v2026.5.1)

Copy Markdown View Source

Manages CDN URLs for the Altair GraphQL Client static assets.

Summary

Functions

Returns the CDN base URL for the Altair static distribution.

Returns the default altair-static version.

Functions

cdn_base_url(version \\ "8.5.2")

@spec cdn_base_url(String.t()) :: String.t()

Returns the CDN base URL for the Altair static distribution.

The returned URL points to the build/dist/ directory of the altair-static npm package. When used as an HTML <base href>, all relative asset references (JS, CSS, fonts, chunks) resolve automatically from the CDN.

default_version()

@spec default_version() :: String.t()

Returns the default altair-static version.