Skip to content

Commit

Permalink
Merge pull request #58 from themoment-team/develop
Browse files Browse the repository at this point in the history
Release v1.3.0
  • Loading branch information
gaoooon committed Apr 16, 2024
2 parents 114d8da + bcc1b42 commit 403aa3a
Show file tree
Hide file tree
Showing 13 changed files with 657 additions and 126 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/sw.js.map
**/public/workbox- *.js.map
**/public/worker-*.js.map
# dependencies
/node_modules
/.pnp
Expand Down
18 changes: 16 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
/* eslint-disable import/order */
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('next').NextConfig} */
const nextConfig = {

const isDevelopment = process.env.NODE_ENV === 'development';

const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true,
runtimeCaching,
disable: isDevelopment,
});

const nextConfig = withPWA({
images: {
domains: ['github.com', 'notion.site'],
},
};
});

module.exports = nextConfig;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"emotion-reset": "^3.0.1",
"init": "^0.1.2",
"next": "^13.5.2",
"next-compose-plugins": "^2.2.1",
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.4.5",
Expand Down
Loading

0 comments on commit 403aa3a

Please sign in to comment.