Skip to main content

examples/vanilla/config/config.exs

import Config

config :phoenix, :json_library, Jason

config :vanilla_example, VanillaExample.Web.Endpoint,
  url: [host: "localhost"],
  adapter: Bandit.PhoenixAdapter,
  render_errors: [formats: [html: VanillaExample.Web.ErrorHTML], layout: false],
  pubsub_server: VanillaExample.PubSub,
  live_view: [signing_salt: "release-kit-vanilla"]

config :volt,
  entry: "assets/js/app.ts",
  root: "assets",
  outdir: "priv/static/assets",
  target: :es2020,
  hash: false,
  asset_url_prefix: "/assets/js",
  resolve_dirs: ["assets/node_modules", "deps"]

config :release_kit, :artifact,
  port: 4100,
  health_path: "/",
  assets: [
    volt: [root: "assets", production: true, frozen: true]
  ],
  env_clear: %{
    "VANILLA_EXAMPLE_WEB" => "true",
    "VANILLA_EXAMPLE_PORT" => "4100",
    "RELEASE_DISTRIBUTION" => "none"
  }

import_config "#{config_env()}.exs"