Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,13 @@ storybook-static


*storybook.log

# PWA
/public/sw.js
/public/sw.js.map
/public/workbox-*.js
/public/workbox-*.js.map
/public/worker-*.js
/public/worker-*.js.map
/public/fallback-*.js
/public/fallback-*.js.map
11 changes: 8 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development',
});

/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
Expand All @@ -14,6 +21,4 @@ const nextConfig = {
},
}

module.exports = nextConfig

module.exports = nextConfig
module.exports = withPWA(nextConfig)
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"dev": "next dev --webpack",
"build": "next build --webpack",
"start": "next start",
"lint": "next lint",
"storybook": "storybook dev -p 6006",
Expand All @@ -14,14 +14,14 @@
"dependencies": {
"@radix-ui/react-dialog": "^1.1.15",
"axios": "^1.13.2",
"react-intersection-observer": "^10.0.2",
"tailwind-animate": "^0.2.10",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.563.0",
"next": "^16.1.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-intersection-observer": "^10.0.2",
"tailwind-animate": "^0.2.10",
"tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7",
"zustand": "^4.5.2"
Expand All @@ -43,6 +43,7 @@
"eslint": "^8.57.0",
"eslint-config-next": "^16.1.1",
"eslint-plugin-storybook": "^10.1.11",
"next-pwa": "^5.6.0",
"playwright": "^1.57.0",
"postcss": "^8.4.40",
"storybook": "^10.1.11",
Expand Down
Loading