From b46c109ddc0db5373c54964891dd20bca499d316 Mon Sep 17 00:00:00 2001 From: cmlim0070 <87525734+cmlim0070@users.noreply.github.com> Date: Fri, 3 Jan 2025 23:32:41 +0900 Subject: [PATCH 1/3] =?UTF-8?q?env=20:=20=EA=B0=9C=EB=B0=9C=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EC=97=90=EC=84=9C=20=EC=84=9C=EB=B9=84=EC=8A=A4?= =?UTF-8?q?=EC=9B=8C=EC=BB=A4=20=EC=BA=90=EC=8B=B1=20=EB=AC=B4=ED=9A=A8?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/sw.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/sw.js b/public/sw.js index ce241bc..dfb7557 100644 --- a/public/sw.js +++ b/public/sw.js @@ -2,7 +2,13 @@ const cacheName = '::myServiceWorker'; const version = 'v0.0.1'; const cacheList = []; +const isDev = + self.location.hostname === 'localhost' || + self.location.hostname === '127.0.0.1'; + self.addEventListener('fetch', (e) => { + if (isDev) return e.respondWith(fetch(e.request)); + e.respondWith( caches.match(e.request).then((r) => { if (r) { From 9f9875e3947ef3e57e2cf19a9e571189f546217b Mon Sep 17 00:00:00 2001 From: cmlim0070 <87525734+cmlim0070@users.noreply.github.com> Date: Fri, 3 Jan 2025 23:32:54 +0900 Subject: [PATCH 2/3] =?UTF-8?q?design=20:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=94=94=EC=9E=90=EC=9D=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/User/Login/LoginPage.tsx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/pages/User/Login/LoginPage.tsx b/src/pages/User/Login/LoginPage.tsx index 78d7884..3742f78 100644 --- a/src/pages/User/Login/LoginPage.tsx +++ b/src/pages/User/Login/LoginPage.tsx @@ -36,33 +36,37 @@ export const LoginPage = () => { }; return ( -