Hello,
Any plans to implement Hot Reloading on Admin UI?
I don't see it in your roadmap: https://www.keystonejs.com/guides/road-map
Currently we have to relaunch the server on every little modification, like edit the fields options (defaultValue etc...), and this is a big waste of time during the development phase.
Thanks!
The admin UI itself already supports hot reloading. The thing is, the field configs don't 😬
Thanks @Vultraz, but then, is this only a bug or a deeper case you won't fix?
Well, you could use nodemon to auto-restart the server.
@maximelebreton Here's how I got this to work with nodemon:
"scripts: {
...
"dev" : "cross-env NODE_ENV=development DISABLE_LOGGING=true nodemon --exec keystone dev"
,
Yep, nodemon is the solution for this for now.
Edit:
I solved it by adding the --ignore 'dist/*' flag to the nodemon command.
Hey, in my case solution provided by @justintemps doesn't work. When keystone prints in the console √ Builder initialized nodemon resets and the building starts from the beggining causing an infinite loop. Any ideas how to solve it?
@timothy02 yea sorry I was assuming you'd already build the dist files before running keystone dev. I don't think it will do that if you run keystone build first.
Most helpful comment
@maximelebreton Here's how I got this to work with nodemon: