Replies: 1 comment
-
@lfd-dev If you use GenerateSW, which you most likely do given that you attempted to use a custom worker, please use import withPWAInit, { runtimeCaching } from "@ducanh2912/next-pwa";
const withPWA = withPWAInit({
runtimeCaching: [
{
urlPattern: "/share",
handler: "NetworkFirst",
method: "POST",
},
...runtimeCaching,
],
}); If you want to use a custom Strategy, you are out of luck, unfortunately; your only choice is to use InjectManifest. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to register a route for the share_target with post method. i.e.
However, I am unable to get this done, i have tried to do this inside custom worker also inside useEffect where I register the event.
Please assist.
Beta Was this translation helpful? Give feedback.
All reactions