Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
fdc22e7
setWebDeviceIdMiddleware 추가
dongoc Mar 20, 2025
a550cda
uuid 패키지 설치
dongoc Mar 11, 2025
8371a25
chain 함수 수정
dongoc Mar 11, 2025
a4c67f8
x-triple-web-device-id cookie에 secure 설정 추가
dongoc Mar 11, 2025
c3d2092
user 스키마에 nolConnected 추가
dongoc Mar 7, 2025
dcc64ce
nolConnected일 때 provider 정보 미노출
dongoc Mar 7, 2025
c18acc3
providerLabel을 빈 string이 아닌 nullable로 표시
dongoc Mar 7, 2025
f68b42a
NOL 멤버스 계정 프로필 라벨 추가
dongoc Mar 9, 2025
807ed62
auth-guard의 UserResponse를 userContext의 User 타입으로 교체
dongoc Mar 10, 2025
a2b4862
setCookie를 response header의 cookie에도 적용하도록 수정
guswl98 Mar 14, 2025
1e74364
필요없는 미들웨어 코드 삭제
guswl98 Mar 14, 2025
841e184
contants package로 관련 값 이동
dongoc Mar 20, 2025
1bf3909
browser의 session 여부를 TP_TK로 판단하도록 변경
guswl98 Mar 14, 2025
7c5e964
applySetCookie 함수 파일 분리
guswl98 Mar 14, 2025
ed419d1
x-triple-web-login 값 제거
guswl98 Mar 14, 2025
3bfb1ca
setWebDeviceId 미들웨어에 applySetCookie 적용
dongoc Mar 17, 2025
b3e031f
getSessionAvailability에서 checkSession 사용
dongoc Mar 20, 2025
2d35dad
세션 체크 API로 변경
guswl98 Mar 20, 2025
f0604f4
middleware에 chain, 기타 미들웨어 export 추가
dongoc Mar 24, 2025
60c5b0f
로그아웃 301, 302일 경우 Location으로 redirect
guswl98 Mar 7, 2025
4987115
device id 제거
guswl98 Mar 11, 2025
0e743fe
테스트 수정
guswl98 Mar 11, 2025
0f5a907
redirect시 baseUrl에 쿼리스트링이 추가될 경우의 테스트 코드 추가
dongoc Mar 19, 2025
6aeec60
로그아웃 status code를 200으로 변경
dongoc Mar 24, 2025
34efe66
setWebDeviceId 미들웨어에 domain 적용
dongoc Mar 24, 2025
e4ee940
User 타입에 provider INVALID 값 추가
dongoc Mar 21, 2025
a5f43f7
profile에서 provider가 INVALID일 경우 예외처리 추가
dongoc Mar 21, 2025
850ccd7
user 유무에 따라 컴포넌트 리턴 순서 변경
dongoc Mar 21, 2025
b7caaf2
middleware dependency에 @titicaca/view-utilities 설치
dongoc Mar 25, 2025
0f0164c
github runner 수정, slack notify 관련 코드 삭제
dongoc Mar 19, 2025
3f8c354
footer.json에 familySites 정보 추가
dongoc Mar 25, 2025
fd65a26
footer에 buttons 범용 타입 추가
dongoc Mar 25, 2025
86cbe9a
button 컴포넌트 파일 이동
dongoc Mar 25, 2025
dcf4c98
dropdown 구현
dongoc Mar 25, 2025
13435c4
button 컴포넌트 조건부 렌더링
dongoc Mar 25, 2025
f7275f7
버튼 컴포넌트를 푸터에 연결
dongoc Mar 25, 2025
21d9d9c
lint 에러 수정
dongoc Mar 25, 2025
b4e8c13
skeleton footer 추가
dongoc Mar 25, 2025
f17c80d
button 스타일 수정
dongoc Mar 25, 2025
a3428ea
dropdown handleClickOutside 조건식 수정
dongoc Mar 25, 2025
7c11254
중복된 타입 제거
dongoc Mar 25, 2025
e12d14c
footer text 간격 조정 및 오타 수정
dongoc Mar 30, 2025
fb4482b
footer 버튼 스타일 수정
dongoc Mar 30, 2025
8ea07e3
filter를 box-shadow로 변경
dongoc Mar 30, 2025
e9c1b01
버튼의 padding값 변경
dongoc Mar 31, 2025
c49d9ff
skeleton footer height 수정
dongoc Mar 31, 2025
c490c00
storybook msw 이슈 해결
dongoc Apr 1, 2025
58c91ed
Reply 컴포넌트 내에서 session error 발생 시 로그인 유도 모달 노출
guswl98 Apr 1, 2025
5135325
session refresh 함수 추가
guswl98 Mar 28, 2025
6ff2829
review session refresh 로직 추가
guswl98 Mar 28, 2025
107a273
authGuardedFetchers 적용
guswl98 Mar 28, 2025
cd404c9
review session refresh 로직 추가2
guswl98 Mar 28, 2025
be9d44d
refresh 성공 시에 재시도 후 결과 리턴
guswl98 Mar 28, 2025
1d5f29a
getSetCookie 메소드로 변경
guswl98 Mar 28, 2025
7e27321
함수를 받도록 수정
guswl98 Mar 28, 2025
8c15209
fix: SessionError가 아닐 때도 throw
guswl98 Apr 1, 2025
f760b3f
import에 type 명시
guswl98 Apr 1, 2025
6c9ed6b
authFetcherize에서 refresh의 apiUriBase를 fetcher와 통일
dongoc Apr 4, 2025
b2c5c57
trackScreen에 nol_device_id 기록
dongoc Apr 6, 2025
6363650
footer의 disclaimer maxWidth 삭제
dongoc Apr 7, 2025
3067fae
return response 추가
guswl98 Apr 2, 2025
3531b17
불필요한 response 변수 제거
guswl98 Apr 2, 2025
e1b8702
x-soto-session 제외 로직 제거
guswl98 Apr 2, 2025
cd14542
return response 추가 및 applySetCookie 적용
guswl98 Apr 2, 2025
33dbbaf
refresh가 필요한 경우를 구분
guswl98 Apr 1, 2025
20c8448
handle401Error export 추가
guswl98 Apr 1, 2025
41fad6d
handle401Error로 401 처리 변경
guswl98 Apr 1, 2025
9b41e0b
일반 Response도 401 처리가 가능하도록 변경
guswl98 Apr 1, 2025
53e6c0f
accessTokenExpired 변수 export 추가 및 package.json에 fetcher 추가
guswl98 Apr 1, 2025
e0902bd
401이 아닌 에러 처리 추가
guswl98 Apr 2, 2025
77f63fb
middleware 내부에서 httpError 로깅 추가 및 x-soto-session 제거 로직 삭제
guswl98 Apr 8, 2025
14c3ec6
captureError는 세션 갱신이 일어나지 않을 때에만 로깅
guswl98 Apr 8, 2025
67eaa94
button rendering시 key props 추가
dongoc Apr 8, 2025
da226cb
SessionProvider prop 변경 시 반영
guswl98 Apr 9, 2025
ef771c8
firstTrial시 NEED_LOGIN_IDENTIFIER 응답일 때 NEED_LOGIN_IDENTIFIER 리턴
dongoc Apr 9, 2025
1337f36
NOL 멤버스 문구를 NOL 회원으로 변경
dongoc Apr 10, 2025
8860cf9
SessionAvailability 여부에 SESSION_KEY도 확인
dongoc Apr 10, 2025
48de684
getSetCookie 메소드로 변경 및 applySetCookie 제거
guswl98 Apr 10, 2025
9649dd8
server component fetcherize 생성
guswl98 Apr 11, 2025
56c0ba6
getDomain util로 분리
guswl98 Apr 11, 2025
0799370
localhost 쿠키 설정 추가
guswl98 Apr 11, 2025
c7abe79
export 추가
guswl98 Apr 11, 2025
87fc89d
next/headers에서 import 하지 않도록 수정
guswl98 Apr 11, 2025
3eba6c9
next/headers dynamic import
guswl98 Apr 14, 2025
510b4ca
불필요한 패키지 제거
guswl98 Apr 14, 2025
d23a298
getAll type 변경 및 cookie stringify
guswl98 Apr 14, 2025
10417c0
next13 용 middleware 추가
guswl98 Apr 14, 2025
da28d0b
scrap에 authGuard 추가
guswl98 Apr 14, 2025
6800712
앱/웹 구분 없이 refresh 시도
guswl98 Mar 26, 2025
ce1336a
웹/앱 구분 없이 세션 갱신 시도
guswl98 Apr 15, 2025
ef09d72
Update 13.46.0 CHANGELOG
Apr 15, 2025
a3f5423
verification-request storybook 컴포넌트 에러 처리
dongoc Apr 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/add-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
label-pr:
if: ${{ github.event.pull_request.draft == false && github.event.pull_request.user.login != 'triple-bot' && !contains(github.event.pull_request.labels.*.name, 'release') }}
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
82 changes: 4 additions & 78 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,12 @@ env:
NPM_REGISTRY_URL: 'https://registry.npmjs.org'
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
HUSKY: 0
# Slack notifications
SLACK_WEBHOOK: ${{ secrets.GHA_NOTIFICATIONS_WEBHOOK_URL }}
SLACK_CHANNEL: '#triple-web-dev-notifications' # 메시지 보낼 채널
SLACK_USERNAME: 'Triple Frontend' # 메시지를 보내는 계정 이름
SLACK_ICON_EMOJI: ':triple_new:'
SLACK_DETAIL_URL: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_GITHUB_REPOSITORY: ${{ github.repository }}
SLACK_AUTHOR_NAME: ${{ github.event.sender.login }}
SLACK_AUTHOR_ICON: ${{ github.event.sender.avatar_url }}
SLACK_FOOTER: ${{ github.repository }}
SLACK_GITHUB_REF: ${{ github.event.ref }} # 메시지에 ref로 표시되는 값
SLACK_GITHUB_EVENT_NAME: ${{ github.event_name }} # 메시지에 Event로 표시되는 값
# Nx Cloud
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
wait-for-ci:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand All @@ -56,30 +44,14 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: build

- name: Notify checking CI timeout
if: steps.wait-for-ci.outputs.conclusion == 'timed_out'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: CI Waiting timeout'
SLACK_TOPIC: 'CI workflow가 시작되었는지, 기다리는 job의 이름이 CI job과 일치하는지, 확인해주세요.'
run: pnpm dlx @titicaca/gha-tools notify

- name: Notify checking CI failure
if: steps.wait-for-ci.outputs.conclusion == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: CI FAILURE'
SLACK_TOPIC: '배포를 중단합니다.'
run: pnpm dlx @titicaca/gha-tools notify

- name: Shutdown workflow
if: steps.wait-for-ci.outputs.conclusion != 'success'
run: node -e 'process.exit(1)'

release:
needs: wait-for-ci
if: startsWith(github.event.ref, 'refs/tags/release-prod-')
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand All @@ -98,13 +70,6 @@ jobs:
- name: Get release version
run: echo "DEPLOY_VERSION=v$(cat ./lerna.json | jq -r '.version')" >> $GITHUB_ENV

- name: Notify deploy start to slack
env:
SLACK_COLOR: gray
SLACK_TITLE: ':rocket: Release WORKING'
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
run: pnpm dlx @titicaca/gha-tools notify

- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
Expand All @@ -117,26 +82,10 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.READ_WRITE_NPM_TOKEN }}
run: pnpm -r publish --no-git-checks

- name: Notify deploy success to slack
if: success()
env:
SLACK_COLOR: success
SLACK_TITLE: ':tada: Release SUCCESS'
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
run: pnpm dlx @titicaca/gha-tools notify

- name: Notify deploy fail to slack
if: failure()
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Release FAILURE'
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
run: pnpm dlx @titicaca/gha-tools notify

tag:
needs: release
if: success()
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -198,7 +147,7 @@ jobs:
canary-release:
needs: wait-for-ci
if: startsWith(github.event.ref, 'refs/tags/release-pr-')
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -229,13 +178,6 @@ jobs:
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
echo "DEPLOY_VERSION=$NEXT_VERSION-pr-$PR_NUMBER.$REF_COUNT" >> $GITHUB_ENV

- name: Notify release start to Slack
env:
SLACK_COLOR: gray
SLACK_TITLE: ':rocket: Release WORKING'
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
run: pnpm dlx @titicaca/gha-tools notify

- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
Expand Down Expand Up @@ -265,19 +207,3 @@ jobs:
-H "Content-Type: application/json" \
-f --request POST \
-d "{\"body\":\"${{ env.DEPLOY_VERSION }} has been published!\"}"

- name: Notify release success to Slack
if: success()
env:
SLACK_COLOR: success
SLACK_TITLE: ':tada: Release SUCCESS'
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
run: pnpm dlx @titicaca/gha-tools notify

- name: Notify release failure to Slack
if: failure()
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Release FAILURE'
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
run: pnpm dlx @titicaca/gha-tools notify
70 changes: 5 additions & 65 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,12 @@ env:
NPM_REGISTRY_URL: 'https://registry.npmjs.org'
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
HUSKY: 0
# Slack Notifications
SLACK_WEBHOOK: ${{ secrets.GHA_NOTIFICATIONS_WEBHOOK_URL }}
SLACK_CHANNEL: '#triple-web-dev-notifications' # 메시지 보낼 채널
SLACK_USERNAME: 'Triple Frontend' # 메시지를 보내는 계정 이름
SLACK_ICON_EMOJI: ':triple_new:'
SLACK_DETAIL_URL: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_GITHUB_REPOSITORY: ${{ github.repository }}
SLACK_AUTHOR_NAME: ${{ github.event.sender.login }}
SLACK_AUTHOR_ICON: ${{ github.event.sender.avatar_url }}
SLACK_FOOTER: ${{ github.repository }}
SLACK_GITHUB_REF: ${{ github.event.ref }} # 메시지에 ref로 표시되는 값
SLACK_GITHUB_EVENT_NAME: ${{ github.event_name }} # 메시지에 Event로 표시되는 값
# Nx Cloud
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
check-dependencies:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand All @@ -56,16 +44,8 @@ jobs:
exit 1
fi

- name: Notify checking dependency failure
if: failure() && steps.check-working-tree-clean.outcome == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Deps check FAILURE'
SLACK_TOPIC: '의존성 변경이 있습니다. `pnpm run sync-deps`로 변경을 반영해주세요.'
run: pnpm dlx @titicaca/gha-tools notify

lint:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand All @@ -87,16 +67,8 @@ jobs:
id: lint
run: pnpm run lint

- name: Notify linting failure
if: failure() && steps.lint.outcome == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Lint FAILURE'
SLACK_TOPIC: ''
run: pnpm dlx @titicaca/gha-tools notify

build:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand All @@ -118,16 +90,8 @@ jobs:
id: build
run: pnpm run build

- name: Notify building failure
if: failure() && steps.build.outcome == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Build FAILURE'
SLACK_TOPIC: ''
run: pnpm dlx @titicaca/gha-tools notify

test:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand All @@ -149,31 +113,15 @@ jobs:
id: test
run: pnpm run test:coverage -- --ci --reporters github-actions --reporters summary --maxWorkers 2

- name: Notify testing failure
if: failure() && steps.test.outcome == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Test FAILURE'
SLACK_TOPIC: ''
run: pnpm dlx @titicaca/gha-tools notify

- name: Upload coverage to Codecov
id: upload-coverage-to-codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage

- name: Notify uploading coverage failure
if: failure() && steps.upload-coverage-to-codecov.outcome == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Upload coverage FAILURE'
SLACK_TOPIC: ''
run: pnpm dlx @titicaca/gha-tools notify

chromatic-deployment:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -202,14 +150,6 @@ jobs:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true

- name: Notify publishing to Chromatic failure
if: failure() && steps.publish-to-chromatic.outcome == 'failure'
env:
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Publish to Chromatic FAILURE'
SLACK_TOPIC: ''
run: pnpm dlx @titicaca/gha-tools notify

- name: Publish to Chromatic and auto accept changes
if: github.ref == 'refs/heads/main'
uses: chromaui/action@latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-closed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
delete-release-tag:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- name: Check tag ref exist
Expand Down
32 changes: 1 addition & 31 deletions .github/workflows/tag-with-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,11 @@ env:
NODE_VERSION: 'lts/*'
PNPM_VERSION: '9'
NPM_REGISTRY_URL: 'https://registry.npmjs.org'
# Slack Notifications
SLACK_WEBHOOK: ${{ secrets.GHA_NOTIFICATIONS_WEBHOOK_URL }}
SLACK_CHANNEL: '#triple-web-dev-notifications' # 메시지 보낼 채널
SLACK_USERNAME: 'Triple Frontend' # 메시지를 보내는 계정 이름
SLACK_ICON_EMOJI: ':triple_new:'
SLACK_DETAIL_URL: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_GITHUB_REPOSITORY: ${{ github.repository }}
SLACK_AUTHOR_NAME: ${{ github.event.sender.login }}
SLACK_AUTHOR_ICON: ${{ github.event.sender.avatar_url }}
SLACK_FOOTER: ${{ github.repository }}
SLACK_GITHUB_REF: ${{ github.event.ref }} # 메시지에 ref로 표시되는 값
SLACK_GITHUB_EVENT_NAME: ${{ github.event_name }} # 메시지에 Event로 표시되는 값

jobs:
tag-with-comment:
if: github.event.issue.state == 'open' && github.event.issue.pull_request && endsWith(github.event.comment.body, 'release-canary')
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}

steps:
- uses: pnpm/action-setup@v3
Expand Down Expand Up @@ -116,21 +104,3 @@ jobs:
-H 'Authorization: token ${{ secrets.TRIPLE_BOT_GITHUB_TOKEN }}' \
-H 'Content-Type: application/json' \
-d "{\"force\":true,\"sha\":\"${TAG_SHA}\"}"

- name: Notify tagging success to Slack
if: success()
env:
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
SLACK_COLOR: success
SLACK_TITLE: ':label: Release tagging SUCCESS'
SLACK_TOPIC: '${{ github.event.sender.login }} tagged ${{ env.PR_REF }} as ${{ env.TAG_NAME }}.'
run: pnpm dlx @titicaca/gha-tools notify

- name: Notify tagging fail to Slack
if: failure()
env:
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
SLACK_COLOR: fail
SLACK_TITLE: ':pleading: Release tagging FAILURE'
SLACK_TOPIC: 'Fail to tag ${{ env.PR_REF }} as ${{ env.TAG_NAME }}.'
run: pnpm dlx @titicaca/gha-tools notify
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
update-changelog:
runs-on: [self-hosted, linux, x64]
runs-on: ${{ vars.NOL_RUNNER }}
if: ${{ github.event.label.name == 'release' }}
steps:
- name: Check if a milestone exists on PR
Expand Down
2 changes: 1 addition & 1 deletion .storybook/decorators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function tripleWebProviderDecorator(Story, context) {
afOnelinkId: '',
afOnelinkPid: '',
afOnelinkSubdomain: '',
webAssetsUrl: 'https://triple-dev.titicaca-corp.com',
webAssetsUrl: 'https://assets.triple-dev.titicaca-corp.com',
}}
i18nProvider={{
defaultLocale: 'ko',
Expand Down
8 changes: 8 additions & 0 deletions .storybook/public/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ self.addEventListener('fetch', function (event) {
return
}

// https://github.com/mswjs/msw-storybook-addon/issues/36#issuecomment-1496150729
const url = new URL(event.request.url)

if (!url.pathname.startsWith('/api/')) {
// Do not propagate this event to other listeners (from MSW)
event.stopImmediatePropagation()
}

// Generate unique request ID.
const requestId = Math.random().toString(16).slice(2)

Expand Down
Loading
Loading