fix(portal): Serve static files with digests at root (#4386)

Closes #4384
This commit is contained in:
Andrew Dryga
2024-03-28 16:13:13 -06:00
committed by GitHub
parent dc75a075b9
commit 2cf63cb33a
2 changed files with 4 additions and 7 deletions

View File

@@ -1,5 +1,3 @@
version: "3.8"
services:
# Dependencies
postgres:

View File

@@ -21,14 +21,13 @@ defmodule Web.Endpoint do
plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint]
# 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.
plug Plug.Static,
at: "/",
from: :web,
gzip: false,
only: Web.static_paths()
gzip: true,
only: Web.static_paths(),
# allows serving digested files at the root
only_matching: ["site", "favicon"]
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.