Upgrade deps, tackle warnings, and update base config

This commit is contained in:
Claudio Ortolina
2025-07-16 09:36:47 +01:00
parent 7fb8a0d05c
commit 3ea2e13863
4 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ config :tailwind,
]
# Configures Elixir's Logger
config :logger, :console,
config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
+7 -4
View File
@@ -29,7 +29,7 @@ config :music_library, MusicLibrary.BackgroundRepo,
config :music_library, MusicLibraryWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {0, 0, 0, 0}, port: 4000],
http: [ip: {0, 0, 0, 0}, port: String.to_integer(System.get_env("PORT") || "4000")],
check_origin: false,
code_reloader: true,
debug_errors: true,
@@ -65,10 +65,11 @@ config :music_library, MusicLibraryWeb.Endpoint,
# Watch static and templates for browser reloading.
config :music_library, MusicLibraryWeb.Endpoint,
live_reload: [
web_console_logger: true,
patterns: [
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/gettext/.*(po)$",
~r"lib/music_library_web/(controllers|live|components)/.*(ex|heex)$"
~r"lib/music_library_web/(?:controllers|live|components|router)/?.*\.(ex|heex)$"
]
]
@@ -79,7 +80,7 @@ config :music_library, LastFm,
refresh_interval: System.convert_time_unit(500, :second, :millisecond)
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
config :logger, :default_formatter, format: "[$level] $message\n"
# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
@@ -89,7 +90,9 @@ config :phoenix, :stacktrace_depth, 20
config :phoenix, :plug_init_mode, :runtime
config :phoenix_live_view,
# Include HEEx debug annotations as HTML comments in rendered markup
# Include debug annotations and locations in rendered markup.
# Changing this configuration will require mix clean and a full recompile.
debug_heex_annotations: true,
debug_tags_location: true,
# Enable helpful, but potentially expensive runtime checks
enable_expensive_runtime_checks: true