Enable the web app to be installed as a standalone PWA on mobile and desktop. Uses Next.js built-in Metadata API for manifest generation, a lightweight service worker for navigation offline fallback, and proper Apple Web App metadata for iOS support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
473 B
TypeScript
22 lines
473 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ["@multica/ui", "@multica/store"],
|
|
headers: async () => [
|
|
{
|
|
source: "/sw.js",
|
|
headers: [
|
|
{
|
|
key: "Cache-Control",
|
|
value: "no-cache, no-store, must-revalidate",
|
|
},
|
|
{
|
|
key: "Content-Type",
|
|
value: "application/javascript; charset=utf-8",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|
|
|
|
export default nextConfig;
|