Skip to content

Commit

Permalink
Try fixing ssr
Browse files Browse the repository at this point in the history
Co-authored-by: Michiel Borkent <michielborkent@gmail.com>
  • Loading branch information
mk and borkdude committed Nov 14, 2023
1 parent 1320e8b commit 2871aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/builder.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2871aa1

Please sign in to comment.