Commit ddd45413 authored by Jacob Vosmaer's avatar Jacob Vosmaer

No fancy deploy or error page needed for assets

parent 257952ff
...@@ -65,13 +65,9 @@ func (u *Upstream) configureRoutes() { ...@@ -65,13 +65,9 @@ func (u *Upstream) configureRoutes() {
route{"", regexp.MustCompile(`^/assets/`), route{"", regexp.MustCompile(`^/assets/`),
handleServeFile(u.DocumentRoot, u.URLPrefix(), CacheExpireMax, handleServeFile(u.DocumentRoot, u.URLPrefix(), CacheExpireMax,
NotFoundUnless(u.DevelopmentMode, NotFoundUnless(u.DevelopmentMode,
handleDeployPage(u.DocumentRoot,
errorpage.Inject(u.DocumentRoot,
u.Proxy(), u.Proxy(),
), ),
), ),
),
),
}, },
// Serve static files or forward the requests // Serve static files or forward the requests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment