Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 서비스 워커 관련 이슈 해결 #159

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

bbearcookie
Copy link
Member

@bbearcookie bbearcookie commented Nov 16, 2023

🧩 이슈 번호

✅ 작업 사항

  • 개발 서버에서는 MSW의 서비스 워커만 사용하도록 작업.
  • FCM 메시지를 수신할 수 있는 서비스 워커 생성.
  • PWA와 관련한 애셋 폴더 정리

👩‍💻 공유 포인트 및 논의 사항

개발 서버의 서비스 워커

PWA 에 대한 설정을 하면서 전역 스코프에 적용되는 서비스 워커가 하나 생겼는데요,
MSW 모드로 개발 서버를 실행한 경우에는 같은 스코프에 두 서비스 워커가 존재해서 MSW 가 작동하지 않는 문제가 있었어요.
(하나의 스코프에서는 반드시 하나의 서비스 워커만 존재할 수 있음)

image (3)

그래서 개발 서버에서는 MSW 를 제외한 다른 서비스 워커는 실행되지 않도록 설정을 변경했어요.

FCM 서비스 워커

또한, 웹 푸쉬 이벤트를 수신하고 알림을 보여주는 서비스 워커를 작성했어요.
혼자 playground 에서 테스트했을 때 받아지긴 했었는데 백엔드 서버의 기능과 잘 연동이 될지는 추후에 해봐야할 것 같아요.

@bbearcookie bbearcookie added ☁️ FE 프론트 레포지토리에서의 작업 🐛 fix 버그 수정 작업 labels Nov 16, 2023
@bbearcookie bbearcookie added this to the 3차 스프린트 milestone Nov 16, 2023
@bbearcookie bbearcookie self-assigned this Nov 16, 2023
Copy link

netlify bot commented Nov 16, 2023

Deploy Preview for moabam-storybook ready!

Name Link
🔨 Latest commit 4192e1a
🔍 Latest deploy log https://app.netlify.com/sites/moabam-storybook/deploys/65563905d2a68b0008b4b170
😎 Deploy Preview https://deploy-preview-159--moabam-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@nsr1349 nsr1349 left a comment

Choose a reason for hiding this comment

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

고생하셨습니닷 ㄷㄷ

Copy link
Contributor

@nayeon-hub nayeon-hub left a comment

Choose a reason for hiding this comment

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

와.... 상훈님 수고하셨습니다👏🏻👏🏻

@bbearcookie bbearcookie merged commit 5768a3d into main Nov 17, 2023
@bbearcookie bbearcookie deleted the fix/#158/service-worker branch November 17, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☁️ FE 프론트 레포지토리에서의 작업 🐛 fix 버그 수정 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

서비스 워커 관련 이슈 해결
3 participants