- TypeScript
- Next.js
- Chakra UI
- Framer Motion
yarn add next-pwa
- add meta tags
- edit
next.config.js
const withPWA = require("next-pwa");
const runtimeCaching = require("next-pwa/cache");
/** @type {import('next').NextConfig} */
module.exports = withPWA({
reactStrictMode: true,
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
config.resolve.fallback.net = false;
config.resolve.fallback.tls = false;
config.resolve.fallback.child_process = false;
}
return config;
},
pwa: {
dest: "public",
runtimeCaching,
register: true,
},
});
The project is licensed under the GNU Affero General Public License 3.0.