From 7a6e0998dc05a647ea9e11c370cb727f821c3b9f Mon Sep 17 00:00:00 2001 From: DuCanhGH <75556609+DuCanhGH@users.noreply.github.com> Date: Thu, 15 Jun 2023 13:15:56 +0700 Subject: [PATCH] fix(next-pwa): fixed build-sw-entry-worker's filename result --- packages/next-pwa/src/build-sw-entry-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-pwa/src/build-sw-entry-worker.ts b/packages/next-pwa/src/build-sw-entry-worker.ts index efe69a7f..61892a2b 100644 --- a/packages/next-pwa/src/build-sw-entry-worker.ts +++ b/packages/next-pwa/src/build-sw-entry-worker.ts @@ -92,5 +92,5 @@ export const buildSWEntryWorker = ({ } }); - return name; + return `/${name}`; };