Next.js Discord

Discord Forum

Next-PWA and i18n

Unanswered
Devon Rex posted this in #help-forum
Open in Discord
Devon RexOP
For some reason, my sw.js is not getting fetched/registered.

Here's my nextjs config
/** @type {import('next').NextConfig} */

const withPWA = require('next-pwa')({
    dest: 'public',
    register: true,
    skipWaiting: true,
})

module.exports = withPWA({
    reactStrictMode: true,
})

and here's my website: https://nino-sage.vercel.app/en

13 Replies

Devon RexOP
I assume it's because of the forced /en redirection. Next-pwa stops functionining there somewhere?
because I'm pretty sure it used to work without internalization, but now that i've added that in, seems that service worker registrations has gone MIA
Devon RexOP
importantly, https://nino-sage.vercel.app/sw.js exists and is fetchable
Devon RexOP
bump
Devon RexOP
bump
Devon RexOP
bump
Devon RexOP
bump
@Devon Rex bump
kindly only bump at most once per day.
@joulev kindly only bump at most once per day.
Devon RexOP
perhaps you have experience with this? willing to pay 100$ bounty
Devon RexOP
ping
Devon RexOP
ping
Devon RexOP
ping
Devon RexOP
resolved