add watch option to auto-restart the frontend if the configs change