Skip to content

Commit

Permalink
remove next-pwa
Browse files Browse the repository at this point in the history
uses webpack, bun is desired for bundling
  • Loading branch information
syhner committed Sep 9, 2023
1 parent 2230f85 commit aeefe26
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ Some features depend on environment variables (indicated in features list with

### Deployment

- 📊 [**Bundle analyzer**](https://www.npmjs.com/package/@next/bundle-analyzer) - Analyze bundle sizes in each environment with `pnpm run build:analyze`
- 📦💡 [**next-pwa**](https://www.npmjs.com/package/@ducanh2912/next-pwa) - Make your website as a progressive web app (PWA)
- 📊 [**Bundle analyzer**](https://www.npmjs.com/package/@next/bundle-analyzer) - Analyze bundle sizes in each environment with `bun run build:analyze`
- 🐳 [**Docker**](https://www.docker.com/) - (local and production) Docker-compose and Dockerfiles for running anywhere
- 🔄 [**GitHub Actions**](https://github.com/features/actions) - Robust CI/CD

Expand Down Expand Up @@ -100,12 +99,6 @@ Some features depend on environment variables (indicated in features list with

- [`mdx-components.tsx`](mdx-components.tsx)

### [next-pwa](https://www.npmjs.com/package/@ducanh2912/next-pwa)

- [`public/icon-512x512.png`](public/icon-512x512.png)
- [`public/manifest.json`](public/manifest.json)
- [`next.config.mjs`](next.config.mjs)

### [NextAuth](https://next-auth.js.org/)

💡 (requires enabling)
Expand Down
Binary file modified bun.lockb
Binary file not shown.
7 changes: 1 addition & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ const nextConfigWithPlugins = async (phase, { defaultConfig }) => {
enabled: env.ANALYZE,
});

const withPWA = (await import('@ducanh2912/next-pwa')).default({
dest: 'public',
disable: !env.PWA,
});

const withMDX = (await import('@next/mdx')).default();

return withBundleAnalyzer(withPWA(withMDX(nextConfig)));
return withBundleAnalyzer(withMDX(nextConfig));
};

export default nextConfigWithPlugins;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@hookform/resolvers": "^3.3.0",
"@mdx-js/loader": "^2.3.0",
"@mdx-js/react": "^2.3.0",
"@next/mdx": "^13.4.19",
"@planetscale/database": "^1.8.0",
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@radix-ui/react-icons": "^1.3.0",
Expand Down

0 comments on commit aeefe26

Please sign in to comment.