Files
Hendrik LiebauandGitHub 9d691d0a4d Log cached fetches during HMR refreshes if enabled in logging config (#68287)
In #67925 we decided not to log any fetches during HMR refreshes (i.e.
when editing server components). With this PR, we introduce a new
logging config (`logging.fetches.hmrRefreshes`) so that users can opt in
to logging of `fetch` requests that are restored from the Server
Components HMR cache.

<img width="806" alt="hmr cache logs"
src="https://github.com/user-attachments/assets/ea789520-8490-479a-a4f0-1febb42388e2">
2024-07-30 16:28:18 +02:00

9 lines
111 B
JavaScript

module.exports = {
logging: {
fetches: {
fullUrl: true,
// hmrRefreshes: true,
},
},
}