Replies: 3 comments 9 replies
-
Are you using some kind of async initialization of express or other server? If so you may need to make razzle send sigterm to the server process. https://github.com/fivethreeo/razzle-prisma-graphqlcodegen-urql-formik-jwt/blob/main/razzle.config.js#L63 |
Beta Was this translation helpful? Give feedback.
-
@fireyy I went back to the codebase again and noticing that the solution did not work. 2: other packages are on watch mode and changing them clear their dist folder which causes a crash to the razzle start command. and then after a few seconds, I can see the changes after a refresh on the page. please let me know if I could implement a better setup with razzle and other packages 🙏 |
Beta Was this translation helpful? Give feedback.
-
For react-refresh just set options.enableReactRefresh to true in razzle options. Also make sure you don’t have anonymous exports because react refresh can’t handle that. |
Beta Was this translation helpful? Give feedback.
-
I set up the razzle as a package inside my monorepo.
- web (razzle)
- components (some dumb components)
- API (some API calls)
with any change on other packages the razzle client-side gets updated but the server-side still works with the old build of the packages and sometimes throws errors due to incompatibility so I have to restart the whole server each time to see the changes.
How can I put the razzle server config on watch mode?
Beta Was this translation helpful? Give feedback.
All reactions