Add PWA support with manifest, service worker, and icons

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Dong
2026-02-27 12:14:47 +08:00
parent 8131ec7af2
commit af194d1b9c
13 changed files with 184 additions and 2 deletions

View File

@@ -1,7 +1,24 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone'
output: 'standalone',
async headers() {
return [
{
source: '/sw.js',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=0, must-revalidate',
},
{
key: 'Service-Worker-Allowed',
value: '/',
},
],
},
];
},
};
module.exports = nextConfig;