// @ts-check import withSerwistInit from "@serwist/next"; // You may want to use a more robust revision to cache // files more efficiently. // A viable option is `git rev-parse HEAD`. const revision = crypto.randomUUID(); const withSerwist = withSerwistInit({ cacheOnNavigation: true, swSrc: "src/app/sw.js", swDest: "public/sw.js", additionalPrecacheEntries: [{ url: "/~offline", revision }], }); /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, devIndicators: false, images: { remotePatterns: [ { protocol: 'https', hostname: 'avatars.githubusercontent.com', }, { protocol: 'https', hostname: 'cdn.discordapp.com', }, { protocol: 'https', hostname: 'lh3.googleusercontent.com', }, ], }, }; export default withSerwist(nextConfig);