mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🎉 Add initial exporter (nodejs) application.
This commit is contained in:
parent
d521416329
commit
c2db6d4f35
10 changed files with 1048 additions and 0 deletions
20
exporter/src/app/config.cljs
Normal file
20
exporter/src/app/config.cljs
Normal file
|
@ -0,0 +1,20 @@
|
|||
(ns app.config
|
||||
(:require
|
||||
["process" :as process]
|
||||
[cljs.pprint]
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
(defn- keywordize
|
||||
[s]
|
||||
(-> (str/kebab s)
|
||||
(str/keyword)))
|
||||
|
||||
(defonce env
|
||||
(let [env (unchecked-get process "env")]
|
||||
(persistent!
|
||||
(reduce #(assoc! %1 (keywordize %2) (unchecked-get env %2))
|
||||
(transient {})
|
||||
(js/Object.keys env)))))
|
||||
|
||||
(defonce config
|
||||
{:domain (:app-domain env "localhost:3449")})
|
Loading…
Add table
Add a link
Reference in a new issue