summaryrefslogtreecommitdiff
path: root/next.config.js
blob: fb9fe8f3d5fe12df17cd448335bb692aeaf67aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** @type {import('next').NextConfig} */
const withPWA = require("@ducanh2912/next-pwa").default({
  dest: "public",
  cacheOnFrontEndNav: true,
  aggressiveFrontEndNavCaching: true,
  reloadOnOnline: true,
  swcMinify: true,
  disable: process.env.NODE_ENV === "development",
  workboxOptions: { disableDevLogs: true },
});

/** @type {import('next').NextConfig} */
const nextConfig = {
  distDir: process.env.BUILD_DIR || ".next",
};

module.exports = withPWA(nextConfig);