diff --git a/config/config.exs b/config/config.exs index 6ddac3e..8723a50 100644 --- a/config/config.exs +++ b/config/config.exs @@ -22,6 +22,10 @@ config :zoeyscomputer, ZoeyscomputerWeb.Endpoint, pubsub_server: Zoeyscomputer.PubSub, live_view: [signing_salt: "uUcDyRmg"] +config :nanoid, + alphabet: "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", + size: 7 + # Configures the mailer # # By default it uses the "Local" adapter which stores the emails @@ -65,10 +69,6 @@ config :ex_aws, :s3, port: 443, region: "us-east-1" -config :nanoid, - size: 21, - alphabet: "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" - # Configures Elixir's Logger config :logger, :console, format: "$time $metadata[$level] $message\n", diff --git a/config/runtime.exs b/config/runtime.exs index e6d2c8a..c3020a1 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -20,6 +20,10 @@ if System.get_env("PHX_SERVER") do config :zoeyscomputer, ZoeyscomputerWeb.Endpoint, server: true end +config :nanoid, + alphabet: "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", + size: 7 + if config_env() == :prod do database_url = System.get_env("DATABASE_URL") ||