Enable gzip in prod

This commit is contained in:
Claudio Ortolina
2025-07-17 17:46:29 +01:00
parent df3df54a7a
commit 9fe3830e7c
+4 -3
View File
@@ -21,12 +21,13 @@ defmodule MusicLibraryWeb.Endpoint do
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.
# When code reloading is disabled (e.g., in production),
# the `gzip` option is enabled to serve compressed
# static files generated by running `phx.digest`.
plug Plug.Static,
at: "/",
from: :music_library,
gzip: false,
gzip: not code_reloading?,
only: MusicLibraryWeb.static_paths()
if Code.ensure_loaded?(Tidewave) do