Skip to content

Commit 08a30e1

Browse files
committed
Update Node.js version in workflow and modify Next.js configuration for PWA support
1 parent a35a223 commit 08a30e1

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [14.x]
14+
node-version: [20.x]
1515

1616
steps:
1717
- uses: actions/cache@v1.1.2

next.config.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
const withPWA = require('next-pwa');
44

5-
module.exports = withPWA({
6-
output: 'export',
5+
module.exports = {
6+
output: 'public',
77
reactStrictMode: true,
88
compiler: {
99
styledComponents: true,
1010
},
11-
pwa: {
12-
dest: 'public',
13-
disable: process.env.NODE_ENV === 'development',
14-
register: true,
15-
skipWaiting: true,
16-
},
1711
basePath: '/react-timestamper',
12+
};
13+
14+
module.exports = withPWA({
15+
dest: 'public',
1816
});

0 commit comments

Comments
 (0)