56 lines
1.4 KiB
Elixir
56 lines
1.4 KiB
Elixir
import Config
|
|
|
|
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
|
|
|
|
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],
|
|
author: %{
|
|
name: "Sloane",
|
|
username: "sloanelybutsurely",
|
|
avatar_emoji: "💜",
|
|
avatar_url: nil
|
|
}
|
|
|
|
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__)
|
|
]
|
|
|
|
config :flop, repo: Core.Repo
|
|
|
|
import_config "#{config_env()}.exs"
|