mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 17:42:48 +00:00
prepare router to serve single page web app
This commit is contained in:
@@ -8,8 +8,9 @@ defmodule MyAppWeb.Endpoint do
|
||||
# You should set gzip to true if you are running phoenix.digest
|
||||
# when deploying your static files in production.
|
||||
plug Plug.Static,
|
||||
at: "/", from: :myapp, gzip: false,
|
||||
only: ~w(css fonts images js favicon.ico robots.txt)
|
||||
at: "/", from: :myapp, gzip: true
|
||||
# serve everything in the static folder
|
||||
# only: ~w(css *.css fonts images js favicon.ico robots.txt)
|
||||
|
||||
# Code reloading can be explicitly enabled under the
|
||||
# :code_reloader configuration of your endpoint.
|
||||
|
||||
Reference in New Issue
Block a user