Skip to content

Commit

Permalink
Tmp PWA setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynder063 committed Sep 15, 2024
1 parent 0530b53 commit 034caa0
Show file tree
Hide file tree
Showing 48 changed files with 5,868 additions and 88 deletions.
10 changes: 9 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// next.config.js
import createMDX from "@next/mdx";
import withPWAInit from "@ducanh2912/next-pwa";

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand All @@ -10,8 +11,15 @@ const nextConfig = {
// Remove output: "export"
};

const withPWA = withPWAInit({
dest: "public",
cacheOnFrontendNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
});

const withMDX = createMDX({
// Add markdown plugins here, as desired
});

export default withMDX(nextConfig);
export default withPWA(withMDX(nextConfig));
Loading

0 comments on commit 034caa0

Please sign in to comment.