-
Notifications
You must be signed in to change notification settings - Fork 2
/
next.config.js
36 lines (31 loc) · 804 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 withPlugins = require('next-compose-plugins');
const withImages = require('next-images');
const nextTranslate = require('next-translate');
const withPWA = require('next-pwa');
const runtimeCaching = require('next-pwa/cache');
const prod = process.env.NODE_ENV === 'production';
module.exports = withPlugins([[withPWA], [withImages], [nextTranslate]], {
pwa: {
disable: prod ? false : true,
dest: 'public',
runtimeCaching,
publicExcludes: ['!robots.txt', '!sitemap.xml'],
register: true,
sw: '/sw.js',
},
images: {
disableStaticImages: true,
domains: [
'bankautomationnews.com',
'localhost:3000',
'127.0.0.1',
'crowdfunding.mamalan.ir',
],
},
env: {
PUBLIC_URL: '',
},
});