Skip to content
Browse files

Use wrap-reload in development, not prod

  • Loading branch information...
swlkr committed Mar 15, 2019
1 parent d81ba92 commit b850bb91f30157eeaecacd0943cc54b4364fc8be
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/coast/middleware.clj
@@ -238,10 +238,12 @@

(def reloader #'ring.middleware.reload/reloader)
(defn wrap-reload [handler]
(let [reload! (reloader ["src"] true)]
(fn [request]
(handler request))))
(if (not= "dev" (env/env :coast-env))
(let [reload! (reloader ["db" "src"] true)]
(fn [request]
(handler request)))))

(defn wrap-json-params [handler]

0 comments on commit b850bb9

Please sign in to comment.
You can’t perform that action at this time.