Fork me on GitHub
#biff
<
2023-10-01
>
Chip18:10:35

The only way I’ve been able to get Portal to work is using @jr0cket’s repl/reloaded (https://github.com/practicalli/clojure-cli-config/blob/82eabbe755df6cd3de5cfa4c5d830037baa1880e/deps.edn#L206) as an nREPL. Hints on configuring bb dev to use Portal? I searched #biff and am not yet smart enough to make sense of what is there.

m.q.warnock18:10:51

i added it to my main deps, and made a use-portal 'component' that calls portal/open and (add-tap #'portal/submit) - maybe not great if you're actually deploying to production, but I'm not at that stage

gratitude-thank-you 1
Jacob O'Bryant20:10:25

yeah that's probably the best way to do it. you can add a config option to disable it in prod (or have it disabled by default and use a config option to enable it), like the use-beholder component: https://github.com/jacobobryant/biff/blob/b730c8524fa113832865b6f41312dd87a514465f/src/com/biffweb/impl/misc.clj#L20