forked from mondaydotvn/shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
37 lines (35 loc) · 889 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
37
/** @type {import('next').NextConfig} */
const runtimeCaching = require('next-pwa/cache');
const { i18n } = require('./next-i18next.config');
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV === 'development',
dest: 'public',
runtimeCaching,
});
module.exports = withPWA({
reactStrictMode: true,
i18n,
images: {
domains: [
'api.mondayui.org',
'mondayui.org',
'api.mondayui.com',
'mondayui.com',
'localhost',
'127.0.0.1:8000',
'maps.googleapis.com',
's3.amazonaws.com',
'pixarlaravel.s3.ap-southeast-1.amazonaws.com',
'maxui.s3.ap-southeast-1.amazonaws.com',
'pickbazarlaravel.s3.ap-southeast-1.amazonaws.com',
],
},
...(process.env.APPLICATION_MODE === 'production' && {
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
}),
});