Codesandbox preview never updates the worker #545
Labels
bug
Something isn't working
DX
good first issue
Good for newcomers
help wanted
Extra attention is needed
The issue
Our pull requests use a Codesandbox integration to generate a preview sandbox for the changes. While it correctly pulls the state of the
mswpackage, it doesn't update thepublic/mockServiceWorker.jsfile as a part of the preview. This can lead to a broken sandbox once we introduce a breaking change to the client-worker communication.Expected behavior
I'd expect Codesandbox config to support some bootstrap event where we could pull the
mockServiceWorker.jsfile relevant to the built pull request (it doesn't have to be the latest, as pull requests may also change the worker file).The text was updated successfully, but these errors were encountered: