From 2871aa1a01be6f84843a963173d8aa89c721cd4a Mon Sep 17 00:00:00 2001 From: Martin Kavalar Date: Tue, 14 Nov 2023 14:21:03 +0100 Subject: [PATCH] Try fixing ssr Co-authored-by: Michiel Borkent --- src/nextjournal/clerk/builder.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nextjournal/clerk/builder.clj b/src/nextjournal/clerk/builder.clj index 8523b5aa9..f39b5c451 100644 --- a/src/nextjournal/clerk/builder.clj +++ b/src/nextjournal/clerk/builder.clj @@ -246,7 +246,7 @@ (report-fn {:stage :ssr}) (let [{duration :time-ms :keys [result]} (eval/time-ms (sh {:in (str "import '" (resource->url "/js/viewer.js") "';" - "console.log(nextjournal.clerk.sci_env.ssr(" (pr-str (pr-str static-app-opts)) "))")} + "nextjournal.clerk.sci_env.ssr(" (pr-str (pr-str static-app-opts)) ").then(console.log)")} "node" "--abort-on-uncaught-exception" "--experimental-network-imports"