Skip to content

Commit

Permalink
πŸ› Disable msw
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscuesta committed Feb 9, 2024
1 parent 5f6f738 commit 8b9b298
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ export const metadata = {
},
}

if (process.env.NEXT_PUBLIC_API_MOCKING === 'enabled') {
require('src/mocks')
}

const font = localFont({
src: [
{
Expand Down

2 comments on commit 8b9b298

@mizamelo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carloscuesta, thanks a lot. Why did you remove this mock in your project? Did you have issues with this?

@carloscuesta
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! I removed this bc this was a leftover from when I was using msw with Next@13. It's not fully compatible yet with v14 so I'm disabling it until it is.

Please sign in to comment.