Replies: 1 comment 6 replies
-
Use the new route handler in Use it to craft any route like |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am trying to find a way on service-worker compile and dynamic static resource generation for next.js.
for example, i want to build
/service-worker/index.ts
tobuild/sw.js
.Add i've tried this config in next.config.js:
But the ouput sw file path is
build/_next/static/chunks/sw-e4a38a9f20260809.js
, which is under folderbuild/_next/static/chunks
and the file name is within the hash code. And i'm stuck here.Do you have any idea on how to do this? I would be very greatful.
Beta Was this translation helpful? Give feedback.
All reactions