From 27f5fc6730fab3b1cfcc854af2c886e647c98ee6 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 30 Jan 2023 12:19:22 -0600 Subject: [PATCH] Switch to Config module --- config/config.exs | 4 ++-- config/dev.exs | 2 +- config/prod.exs | 2 +- config/test.exs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.exs b/config/config.exs index 83c0adc..d31789a 100644 --- a/config/config.exs +++ b/config/config.exs @@ -3,7 +3,7 @@ # # This configuration file is loaded before any dependency and # is restricted to this project. -use Mix.Config +import Config config :phoenix, :json_library, Jason @@ -52,4 +52,4 @@ config :dart_sass, # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. -import_config "#{Mix.env()}.exs" +import_config "#{config_env()}.exs" diff --git a/config/dev.exs b/config/dev.exs index 32c15f4..e1d21d3 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config # For development, we disable any cache and enable # debugging and code reloading. diff --git a/config/prod.exs b/config/prod.exs index 9d8479f..aac0be3 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :chess, ChessWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json", diff --git a/config/test.exs b/config/test.exs index 0a710de..c1d17c0 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config # We don't run a server during test. If one is required, # you can enable the server option below.