-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
26 lines (23 loc) · 890 Bytes
/
next.config.mjs
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
import withPWA from 'next-pwa';
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true, // Enable React strict mode for improved error handling
swcMinify: true, // Enable SWC minification for improved performance
compiler: {
removeConsole: process.env.NODE_ENV !== "development" // Remove console.log in production
},
images: {
domains: ["res.cloudinary.com"],
remotePatterns: [{
protocol: 'https',
hostname: 'res.cloudinary.com',
port: '',
},],
},
};
export default withPWA({
dest: "public", // destination directory for the PWA files
// disable PWA in the development environment
register: true, // register the PWA service worker
skipWaiting: true, // skip waiting for service worker activation
})(nextConfig);