rsnext/packages
Jiachi Liu c87a1b12c3
fix: env hot reload for RSC pages (#51930)
### Issue
When you edit .env* files, the pages under app dir that using env vars are not triggering hot reload

### Fix
Triggering serverComponentChanges hot reload action when we detect env or tsconfig related change. There's a time period that we need to wait before the compilation is finished. First we save a flag `reloadOnDone` if we need to reload when after compilation is done, by determining if `envChange` is `true` (we already know this in dev server). Then in the compilation hooks, we refresh RSC page once it's finished.

### Extra change 

since we're checking `event.action` in client hot reloader, and throwing error for unknown action, filter devPagesManifestUpdate out from unexpected action as it sometimes triggered as error in console. Introduced in #51516
Fixes NEXT-1261
2023-07-03 10:11:28 +00:00
..
create-next-app v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
eslint-config-next v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
eslint-plugin-next v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
font v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next fix: env hot reload for RSC pages (#51930) 2023-07-03 10:11:28 +00:00
next-bundle-analyzer v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-codemod v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-env v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-mdx v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-plugin-storybook v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-polyfill-module v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-polyfill-nomodule v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
next-swc Remove EnvironmentIntention (#51965) 2023-07-03 09:03:37 +00:00
react-dev-overlay v13.4.8-canary.14 2023-06-30 22:36:17 +00:00
react-refresh-utils v13.4.8-canary.14 2023-06-30 22:36:17 +00:00