next.js
f71ce534 - [test] Add test fixture for runtime error in `'use cache'` (#86499)

Commit
35 days ago
[test] Add test fixture for runtime error in `'use cache'` (#86499) In production, when throwing an error in `'use cache'` at runtime, we are currently logging the obfuscated error that React is producing when crossing the cache-server boundary. This is not ideal for investigating production issues so we're also logging the original error in the `'use cache'` wrapper. But this error does not have a digest, which makes it non-obvious that it's the same error as the obfuscated one. This PR is just adding a test fixture for this case, so that we can see the changes when improving the error handling in the upstack PR.
Author
Parents
Loading