- Remove external Leaflet CDN links from info page (now uses vendor bundles) - Remove all Sentry error tracking integration: - Remove sentry dependency from mix.exs - Remove Sentry plugs from endpoint.ex - Remove Sentry logger handler from application.ex - Remove Sentry configs from dev.exs and prod.exs - Remove Sentry domains from runtime.exs check_origin - Remove Sentry JavaScript initialization - Delete sentry_filter.ex module - Remove Sentry loader script from root layout The application now loads all assets locally with no external runtime dependencies.
33 lines
1.2 KiB
Elixir
33 lines
1.2 KiB
Elixir
import Config
|
|
|
|
# For production, don't forget to configure the url host
|
|
# to something meaningful, Phoenix uses this information
|
|
# when generating URLs.
|
|
|
|
# Note we also include the path to a cache manifest
|
|
# containing the digested version of static files. This
|
|
# manifest is generated by the `mix phx.digest` task,
|
|
# which you should run after static files are built and
|
|
# before starting your production server.
|
|
config :aprsme, AprsmeWeb.Endpoint,
|
|
cache_static_manifest: "priv/static/cache_manifest.json",
|
|
adapter: Bandit.PhoenixAdapter,
|
|
http: [ip: {0, 0, 0, 0}, port: 4000]
|
|
|
|
# Runtime production configuration, including reading
|
|
|
|
config :esbuild,
|
|
version: "0.24.2",
|
|
default: [
|
|
args:
|
|
~w(js/app.js --bundle --target=es2020 --outdir=../priv/static/assets --loader:.ts=ts --loader:.css=css --loader:.png=file --loader:.svg=file --external:/fonts/* --external:/images/*),
|
|
cd: Path.expand("../assets", __DIR__),
|
|
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
|
|
]
|
|
|
|
# Do not print debug messages in production
|
|
# of environment variables, is done on config/runtime.exs.
|
|
config :logger, level: :info
|
|
|
|
# Configures Swoosh API Client
|
|
config :swoosh, :api_client, Swoosh.ApiClient.Req
|