Skip to content

Commit 0a7118d

Browse files
add missing part for live_reload
1 parent 0b764fd commit 0a7118d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/prod.exs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Fileonchain.Finc
2626
# Disable Swoosh Local Memory Storage
2727
config :swoosh, local: false
2828

29+
# Watch static and templates for browser reloading.
30+
config :fileonchain, FileonchainWeb.Endpoint,
31+
live_reload: [
32+
patterns: [
33+
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
34+
~r"priv/gettext/.*(po)$",
35+
~r"lib/fileonchain_web/(controllers|live|components)/.*(ex|heex)$"
36+
]
37+
]
38+
2939
# Do not print debug messages in production
3040
config :logger, level: :info
3141

0 commit comments

Comments
 (0)