Skip to content

hvrain/msw-next15

Repository files navigation

MSW를 Next.js 15에 적용

Reference

msw-with-next^15

  1. npx create-next-app@latest 설치 (All Enter)
  2. npx msw init public 실행
  3. public/MockServiceWorker.js을 붙여넣기
  4. mocks 폴더를 만들고 browser, node를 다음 파일과 같이 작성
  5. app/msw-provider.tsx와 같이 컴포넌트 만들기
  6. app/layout.tsx에 node 환경에서 msw를 실행시키도록 코드 작성
  7. msw 즐겁게 사용

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published