blob: 8e1ceda35a1b669cccde33664e5a0913376de3c3 (
plain)
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 withPWA = require('next-pwa')({
dest: 'public',
register: true,
disable: process.env.NODE_ENV === 'development',
skipWaiting: true
})
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
distDir: process.env.BUILD_DIR || '.next',
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack']
})
return config
},
i18n: {
locales: ['id'],
defaultLocale: 'id'
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'erp.indoteknik.com'
}
]
}
}
module.exports = withPWA(nextConfig)
|