reitit

2025-11-26T19:53:34.670359Z

I'm a bit confused on the right way to serve generated files during dev. If I have CSS files such as ./resources/public/css/gen/main.css, and I want to serve them at e.g. /static/css/gen/main.css , is a file or resource handler more appropriate? And what configuration makes that actually work?

opqdonut 2025-11-27T05:08:59.458539Z

files vs resources only matter if you're deploying an uberjar

opqdonut 2025-11-27T05:16:48.086199Z

resources can live inside the uberjar, files need to be actual files

👍 1
opqdonut 2025-11-27T05:17:04.956889Z

if you're deploying a git checkout or a docker image, the distinction probably doesn't matter

2025-11-26T19:55:39.103749Z

Figured it out the moment after posting here, it's ["/static/*" (create-file-handler {:path "/resources/public"})]