46 lines
1.2 KiB
Elixir
46 lines
1.2 KiB
Elixir
import Config
|
|
|
|
config :esbuild,
|
|
version: "0.17.11",
|
|
sloanely_but_surely: [
|
|
args:
|
|
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
|
|
cd: Path.expand("../assets", __DIR__),
|
|
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
|
|
]
|
|
|
|
config :logger, :console,
|
|
format: "$time $metadata[$level] $message\n",
|
|
metadata: [:request_id]
|
|
|
|
config :phoenix, :json_library, Jason
|
|
|
|
config :sloanely_but_surely, Web.Endpoint,
|
|
url: [host: "localhost"],
|
|
adapter: Bandit.PhoenixAdapter,
|
|
render_errors: [
|
|
formats: [html: Web.ErrorHTML, json: Web.ErrorJSON],
|
|
layout: false
|
|
],
|
|
pubsub_server: Core.PubSub,
|
|
live_view: [signing_salt: "afQxdsCJ"]
|
|
|
|
config :sloanely_but_surely,
|
|
namespace: Core,
|
|
ecto_repos: [Core.Repo],
|
|
generators: [timestamp_type: :utc_datetime_usec, binary_id: true]
|
|
|
|
config :sloanely_but_surely, Core.Repo, migration_timestamps: [type: :utc_datetime_usec]
|
|
|
|
config :tailwind,
|
|
version: "3.4.3",
|
|
sloanely_but_surely: [
|
|
args: ~w(
|
|
--config=tailwind.config.js
|
|
--input=css/app.css
|
|
--output=../priv/static/assets/app.css
|
|
),
|
|
cd: Path.expand("../assets", __DIR__)
|
|
]
|
|
|
|
import_config "#{config_env()}.exs"
|