Skip to content

Commit

Permalink
chore: remove anything related to serwist
Browse files Browse the repository at this point in the history
  • Loading branch information
tfkhdyt committed Jul 7, 2024
1 parent f02ca3c commit e459424
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 506 deletions.
32 changes: 9 additions & 23 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,13 @@
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import withPWAInit from '@ducanh2912/next-pwa';

await import('./src/environment.mjs');

// const withBundleAnalyzer = bundleAnalyzer({
// enabled: process.env.ANALYZE === 'true',
// });

const withPWA = withPWAInit({
dest: 'public',
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
fallbacks: {
document: '/offline',
},
workboxOptions: {
disableDevLogs: true,
},
});

// const withSerwist = withSerwistInit({
// cacheOnFrontEndNav: true,
// swSrc: 'src/app/sw.ts',
Expand All @@ -32,14 +18,14 @@ const withPWA = withPWAInit({

/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
images: {
remotePatterns: [
{
hostname: 'utfs.io',
},
],
},
reactStrictMode: true,
images: {
remotePatterns: [
{
hostname: 'utfs.io',
},
],
},
};

export default withPWA(config);
export default config;
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@serwist/next": "^8.4.4",
"@serwist/precaching": "^8.4.4",
"@serwist/sw": "^8.4.4",
"@t3-oss/env-nextjs": "^0.10.1",
"@tanstack/react-query": "^4.36.1",
"@trpc/client": "^10.45.2",
Expand Down
Loading

0 comments on commit e459424

Please sign in to comment.