Skip to content

MSW intercept for fetch of next.js 13 app dir server component #1498

Closed Answered by kettanaito
GomaGoma676 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. We don't support the Next 13 App directory at the moment. The App directory itself is in beta and we won't be supporting it until it's stable.

Next has removed the _app.js API for us to instantiate MSW, so we would have to find a different approach. I had some luck with integrating MSW using React Server Components but there are a few challenges in regards to how Next works internally that prevent us from moving forward.

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@ZachShaw
Comment options

@WilliamZimmermann
Comment options

@mikeyfarina
Comment options

@KevinKra
Comment options

Answer selected by kettanaito
Comment options

You must be logged in to vote
1 reply
@WilliamZimmermann
Comment options

Comment options

You must be logged in to vote
3 replies
@danielbeardsley
Comment options

@PeterByun
Comment options

@elliotwestlake
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants