First commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// next.config.ts
|
||||
|
||||
import type { NextConfig } from "next";
|
||||
import withSerwistInit from "@serwist/next";
|
||||
|
||||
const manualRevision = "v1.0.0";
|
||||
|
||||
const withSerwist = withSerwistInit({
|
||||
swSrc: "app/sw.ts",
|
||||
swDest: "public/sw.js",
|
||||
disable: process.env.NODE_ENV === "development",
|
||||
cacheOnNavigation: true,
|
||||
additionalPrecacheEntries: [
|
||||
{ url: "/", revision: manualRevision },
|
||||
{ url: "/emergency", revision: manualRevision },
|
||||
{ url: "/faq", revision: manualRevision },
|
||||
],
|
||||
});
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
};
|
||||
|
||||
export default withSerwist(nextConfig);
|
||||
Reference in New Issue
Block a user