File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ config :fileonchain,
13
13
14
14
# Configures the endpoint
15
15
config :fileonchain , FileonchainWeb.Endpoint ,
16
- url: [ host: "localhost" ] ,
16
+ url: [ host: System . get_env ( "PHX_HOST" ) || "localhost" ] ,
17
17
adapter: Bandit.PhoenixAdapter ,
18
18
render_errors: [
19
19
formats: [ html: FileonchainWeb.ErrorHTML , json: FileonchainWeb.ErrorJSON ] ,
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ import Config
6
6
# which you should run after static files are built and
7
7
# before starting your production server.
8
8
config :fileonchain , FileonchainWeb.Endpoint ,
9
+ render_errors: [
10
+ formats: [ html: FileonchainWeb.ErrorHTML , json: FileonchainWeb.ErrorJSON ] ,
11
+ layout: false
12
+ ] ,
9
13
cache_static_manifest: "priv/static/cache_manifest.json"
10
14
11
15
# Configures Swoosh API Client
You can’t perform that action at this time.
0 commit comments