View Source AshSanity.CMS (ash_sanity v0.1.0)

Defines a CMS.

A CMS maps to an underlying Sanity instance.

When used, the CMS expects the :otp_app option. The :otp_app should point to an OTP application that has the CMS configuration. For example, the CMS:

defmodule CMS do
  use AshSanity.CMS,
    otp_app: :my_app
end

Could be configured with:

config :my_app, CMS,
  project_id: "my_project_id",
  dataset: "production",
  token: "my_sanity_api_token",
  cdn: true,
  perspective: "published"

Summary

Types