# This file is responsible for configuring the guildhall umbrella # and all applications. See https://hexdocs.pm/elixir/Config.html import Config # Ecto repos registered for the ops_db app. config :guildhall_ops_db, ecto_repos: [Guildhall.OpsDb.Repo] config :guildhall_web, generators: [timestamp_type: :utc_datetime] # Configure the Phoenix endpoint config :guildhall_web, GuildhallWeb.Endpoint, url: [host: "localhost"], adapter: Bandit.PhoenixAdapter, render_errors: [ formats: [html: GuildhallWeb.ErrorHTML, json: GuildhallWeb.ErrorJSON], layout: false ], pubsub_server: Guildhall.PubSub, live_view: [signing_salt: "KW150V7O"] # esbuild config :esbuild, version: "0.25.4", guildhall_web: [ args: ~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets/js --external:/fonts/* --external:/images/* --alias:@=.), cd: Path.expand("../apps/guildhall_web/assets", __DIR__), env: %{"NODE_PATH" => [Path.expand("../deps", __DIR__), Mix.Project.build_path()]} ] # tailwind config :tailwind, version: "4.1.12", guildhall_web: [ args: ~w( --input=assets/css/app.css --output=priv/static/assets/css/app.css ), cd: Path.expand("../apps/guildhall_web", __DIR__) ] # Logger config :logger, :default_formatter, format: "$time $metadata[$level] $message\n", metadata: [:request_id] # Use Jason for JSON parsing in Phoenix config :phoenix, :json_library, Jason # Import environment specific config import_config "#{config_env()}.exs"