# SPDX-FileCopyrightText: 2020 Zach Daniel
#
# SPDX-License-Identifier: MIT

import Config

config :ash, :disable_async?, true
config :ash, :validate_domain_resource_inclusion?, false
config :ash, :validate_domain_config_inclusion?, false

config :ash, :pub_sub, debug?: true
config :logger, level: :info, default_formatter: [metadata: [:crash_reason]]

if Mix.env() == :test do
  config :ash_graphql, :simulate_subscription_slowness?, true
end

config :ash_graphql, :authorize_update_destroy_with_error?, true

if Mix.env() == :dev do
  config :git_ops,
    mix_project: AshGraphql.MixProject,
    github_handle_lookup?: true,
    changelog_file: "CHANGELOG.md",
    repository_url: "https://github.com/ash-project/ash_graphql",
    # Instructs the tool to manage your mix version in your `mix.exs` file
    # See below for more information
    manage_mix_version?: true,
    # Instructs the tool to manage the version in your README.md
    # Pass in `true` to use `"README.md"` or a string to customize
    manage_readme_version: [
      "README.md",
      "documentation/tutorials/getting-started-with-graphql.md"
    ],
    version_tag_prefix: "v"
end
