summaryrefslogtreecommitdiff
path: root/next.config.js
blob: d02aa9f08232612ca4396c8349b3ea2f9030450a (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
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  swcMinify: true,
  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 = nextConfig