Skip to content

Commit

Permalink
fix: add Jason for Phoenix
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jun 19, 2024
1 parent a195d37 commit 34afbee
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/cf/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ config :logger, :console, format: "[$level] $message\n"
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
config :phoenix, :json_library, Jason

# Mails
config :cf, CF.Mailer, adapter: Bamboo.LocalAdapter
Expand Down
1 change: 1 addition & 0 deletions apps/cf_graphql/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ config :logger, :console, format: "[$level] $message\n"
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
config :phoenix, :json_library, Jason
3 changes: 2 additions & 1 deletion apps/cf_graphql/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ defmodule CF.Graphql.Mixfile do
defp deps do
[
{:phoenix, "~> 1.5.14"},
{:plug, "~> 1.7"},
{:phoenix_pubsub, "~> 2.0"},
{:jason, "~> 1.4"},
{:plug, "~> 1.7"},
{:cowboy, "~> 2.0"},
{:corsica, "~> 2.1"},
{:absinthe_ecto, "~> 0.1.3"},
Expand Down
1 change: 1 addition & 0 deletions apps/cf_rest_api/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ config :cf_rest_api, CF.RestApi.Endpoint,
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20
config :phoenix, :json_library, Jason
1 change: 1 addition & 0 deletions apps/cf_rest_api/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ defmodule CF.RestApi.Mixfile do
{:phoenix, "~> 1.5.14", override: true},
{:phoenix_html, "~> 2.14.3"},
{:phoenix_pubsub, "~> 2.0"},
{:jason, "~> 1.4"},
{:poison, "~> 3.1"},
{:scout_apm, "~> 1.0.6"},
{:plug_cowboy, "~> 2.1"},
Expand Down
1 change: 1 addition & 0 deletions apps/cf_reverse_proxy/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ defmodule CF.ReverseProxy.Mixfile do
{:cf_graphql, in_umbrella: true},
{:cf_atom_feed, in_umbrella: true},
{:phoenix, "~> 1.5.14"},
{:jason, "~> 1.4"},
{:cowboy, "~> 2.0"},
{:corsica, "~> 2.1"}
]
Expand Down

0 comments on commit 34afbee

Please sign in to comment.