Question about using a https://figwheel.org/docs/your_own_server.html with figwheel. I have a monorepo structure like this:
├── app
│ ├── deps.edn
│ ├── dev.cljs.edn
│ ├── resources
│ ├── src
│ └── target
├── app-server
│ ├── deps.edn
│ ├── resources
│ └── src
The app-server
package is a simple backend server which will be used in production to server static files (html, css, js etc) in addition to some custom routes and the app
package is the front end itself.What is the recommended approach to serving the static files like the index.html
from the custom server?
For more info, the app-server
would run at localhost:3000
and then figwheel server could continue to run at localhost:9500
yeah so you just need to add the ../app/target/
to your resource paths
for your app server under development mode
I mean your classpath
and configure your server to serve static resources
If you are using ring then I believe site-defaults works??
Works. Thanks!