mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix exporter failing with HTTPS
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled
CI / Linter (push) Has been cancelled
CI / Common Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / Render WASM Tests (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Library Tests (push) Has been cancelled
CI / Build Integration Bundle (push) Has been cancelled
CI / Integration Tests 1/4 (push) Has been cancelled
CI / Integration Tests 2/4 (push) Has been cancelled
CI / Integration Tests 3/4 (push) Has been cancelled
CI / Integration Tests 4/4 (push) Has been cancelled
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled
CI / Linter (push) Has been cancelled
CI / Common Tests (push) Has been cancelled
CI / Frontend Tests (push) Has been cancelled
CI / Render WASM Tests (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Library Tests (push) Has been cancelled
CI / Build Integration Bundle (push) Has been cancelled
CI / Integration Tests 1/4 (push) Has been cancelled
CI / Integration Tests 2/4 (push) Has been cancelled
CI / Integration Tests 3/4 (push) Has been cancelled
CI / Integration Tests 4/4 (push) Has been cancelled
This commit is contained in:
committed by
Belén Albeza
parent
6ce3249c6d
commit
a614207f7e
@@ -7,4 +7,5 @@ bb -i '(babashka.wait/wait-for-port "localhost" 9630)';
|
|||||||
bb -i '(babashka.wait/wait-for-path "target/app.js")';
|
bb -i '(babashka.wait/wait-for-path "target/app.js")';
|
||||||
sleep 2;
|
sleep 2;
|
||||||
|
|
||||||
|
export NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||||
exec node target/app.js
|
exec node target/app.js
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
(def browser-pool-factory
|
(def browser-pool-factory
|
||||||
(letfn [(create []
|
(letfn [(create []
|
||||||
(p/let [opts #js {:args #js ["--font-render-hinting=none"]}
|
(p/let [opts #js {:args #js ["--allow-insecure-localhost" "--font-render-hinting=none"]}
|
||||||
browser (.launch pw/chromium opts)
|
browser (.launch pw/chromium opts)
|
||||||
id (swap! pool-browser-id inc)]
|
id (swap! pool-browser-id inc)]
|
||||||
(l/info :origin "factory" :action "create" :browser-id id)
|
(l/info :origin "factory" :action "create" :browser-id id)
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
(p/fmap (fn [resource]
|
(p/fmap (fn [resource]
|
||||||
(assoc exchange :response/body resource)))
|
(assoc exchange :response/body resource)))
|
||||||
(p/merr (fn [cause]
|
(p/merr (fn [cause]
|
||||||
(l/error :hint "unexpected error on export multiple"
|
(l/error :hint "unexpected error on single export"
|
||||||
:cause cause)
|
:cause cause)
|
||||||
(p/rejected cause))))))
|
(p/rejected cause))))))
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
(redis/pub! topic data))))
|
(redis/pub! topic data))))
|
||||||
|
|
||||||
on-error (fn [cause]
|
on-error (fn [cause]
|
||||||
(l/error :hint "unexpected error on multiple exportation" :cause cause)
|
(l/error :hint "unexpected error on multiple export" :cause cause)
|
||||||
(if wait
|
(if wait
|
||||||
(p/rejected cause)
|
(p/rejected cause)
|
||||||
(redis/pub! topic {:type :export-update
|
(redis/pub! topic {:type :export-update
|
||||||
|
|||||||
Reference in New Issue
Block a user