Packages

Fermo project generator. Provides a `mix fermo.new` task to bootstrap a new Fermo project with the standard dependencies for use with DatoCMS.

Current section

Files

Jump to
fermo_new templates new config dev.exs
Raw

templates/new/config/dev.exs

import Mix.Config
alias DatoCMS.GraphQLClient.Backends.StandardClient
Application.put_env(
:fermo,
:live_mode_servers,
[{Registry, keys: :unique, name: :datocms_live_update_query_registry}]
)
config = Application.get_env(:datocms_graphql_client, :config, [])
merged = Keyword.merge(
config,
backend: StandardClient,
endpoint: "https://graphql-listen.datocms.com/preview",
live: true
)
Application.put_env(:datocms_graphql_client, :config, merged)