This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-18
Channels
- # aleph (1)
- # announcements (31)
- # babashka (9)
- # babashka-sci-dev (36)
- # beginners (72)
- # calva (20)
- # clj-kondo (99)
- # cljsrn (1)
- # clojure (77)
- # clojure-europe (33)
- # clojure-nl (4)
- # clojure-norway (12)
- # clojure-uk (4)
- # clojurescript (23)
- # cursive (2)
- # datascript (5)
- # events (1)
- # fulcro (3)
- # honeysql (3)
- # inf-clojure (82)
- # interop (2)
- # kaocha (10)
- # lsp (15)
- # meander (1)
- # missionary (10)
- # off-topic (22)
- # pathom (4)
- # pedestal (3)
- # polylith (20)
- # re-frame (10)
- # react (4)
- # reagent (4)
- # reitit (27)
- # ring-swagger (1)
- # shadow-cljs (34)
- # specter (3)
- # sql (1)
- # testing (5)
- # tools-deps (22)
- # vim (12)
Is that possible to setup different headersize for localhost (cljs->clj requests) or API URL? (I know maybe better to do Google way, redirect POST to GET, but I would like to understand is that possible?
You can have different main's with different configs for dev setup and prod setup based on this example: https://github.com/pedestal/pedestal/issues/615#issuecomment-505622534 you can do:
(def service
{...})
(defn dev-main
[& args]
(-> service
(assoc-in [::http/container-options :io.pedestal.http.jetty/http-configuration]
(http-configuration 5000))
http/default-interceptors
http/create-server
http/start))
(defn -main
[& args]
(-> service
http/default-interceptors
http/create-server
http/start))
👍 1
@U2J4FRT2T thanks!!