forked from bloomerstv/bloomerstv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (31 loc) · 941 Bytes
/
next.config.js
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
/** @type {import('next').NextConfig} */
// const webpack = require('webpack')
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
}
// ... other options you like
})
const nextConfig = {
images: {
domains: ['images.unsplash.com', 'cdn.stamp.fyi']
},
reactStrictMode: false,
webpack: (config) => {
config.resolve.fallback = { fs: false, net: false, tls: false }
config.externals.push('pino-pretty', 'lokijs', 'encoding')
// Add this line to ignore the problematic modules
// config.plugins.push(
// new webpack.IgnorePlugin({ resourceRegExp: /^@aws-sdk\/client-s3$/ })
// )
return config
}
}
module.exports = withPWA(nextConfig)
// module.exports = nextConfig