62 lines
1.9 kB
1
# This file is responsible for configuring your application
2
# and its dependencies with the aid of the Config module.
3
#
4
# This configuration file is loaded before any dependency and
5
# is restricted to this project.
6
7
# General application configuration
8
import Config
9
10
# Configures the endpoint
11
config :blog, BlogWeb.Endpoint,
12
url: [host: "localhost"],
13
adapter: Bandit.PhoenixAdapter,
14
render_errors: [
15
formats: [html: BlogWeb.ErrorHTML, json: BlogWeb.ErrorJSON],
16
layout: false
17
],
18
pubsub_server: Blog.PubSub,
19
live_view: [signing_salt: "aLPIOUxY"]
20
21
# Configures the mailer
22
#
23
# By default it uses the "Local" adapter which stores the emails
24
# locally. You can see the emails in your browser, at "/dev/mailbox".
25
#
26
# For production it's recommended to configure a different adapter
27
# at the `config/runtime.exs`.
28
config :blog, Blog.Mailer, adapter: Swoosh.Adapters.Local
29
30
# Configure esbuild (the version is required)
31
config :esbuild,
32
version: "0.17.11",
33
blog: [
34
args:
35
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
36
cd: Path.expand("../assets", __DIR__),
37
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
38
]
39
40
# Configure tailwind (the version is required)
41
config :tailwind,
42
version: "3.4.3",
43
blog: [
44
args: ~w(
45
--config=tailwind.config.js
46
--input=css/app.css
47
--output=../priv/static/assets/app.css
48
),
49
cd: Path.expand("../assets", __DIR__)
50
]
51
52
# Configures Elixir's Logger
53
config :logger, :console,
54
format: "$time $metadata[$level] $message\n",
55
metadata: [:request_id]
56
57
# Use Jason for JSON parsing in Phoenix
58
config :phoenix, :json_library, Jason
59
60
# Import environment specific config. This must remain at the bottom
61
# of this file so it overrides the configuration defined above.
62
import_config "#{config_env()}.exs"
63