cider

Amin 2026-01-05T11:04:05.598409Z

Maybe someone could help here, I donโ€™t know how to make cider find my index.html when running cider-jack-in-cljs. There are more details in the message below. https://clojurians.slack.com/archives/C099W16KZ/p1767110735418159

โœ… 1
Roma 2026-01-05T16:32:56.424419Z

Have you tried creating the index.html in the project root?

Roma 2026-01-05T16:41:31.391149Z

Also I don't think your :main-opts are actually being used since CIDER appends its own alias :cider/nrepl with custom :main-opts. You can check the actual startup command in the REPL buffer when it's launched.

Roma 2026-01-05T16:47:54.884789Z

So if you just need a custom index.html page you can put it to the project root, I tested it and it seems to be working fine.

Amin 2026-01-07T09:23:52.970109Z

Thank you for your answer that was very helpful ๐Ÿ‘ , it works now. Maybe some additional questions: how could I print the current project root for this cider session?

Roma 2026-01-07T10:48:23.387349Z

CIDER uses clojure-mode to detect project root. You can use M-: (clojure-project-root-path) or M-: (clojure-ts-project-root-path) if you use clojure-ts-mode