-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
42 lines (39 loc) · 882 Bytes
/
next.config.mjs
File metadata and controls
42 lines (39 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import withPWAInit from "@ducanh2912/next-pwa";
const withPWA = withPWAInit({
dest: "public",
register: true,
scope: "/app",
sw: "service-worker.js",
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
swcMinify: true,
disable: false,
workboxOptions: {
disableDevLogs: true,
},
cacheStartUrl: true,
});
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "utfs.io",
},
],
},
experimental: {
// …
serverComponentsExternalPackages: ["@react-pdf/renderer"],
},
};
export default withPWA(nextConfig);