const withPWA = require('next-pwa')({ disable: process.env.NODE_ENV !== 'production', dest: 'public', register: true, skipWaiting: true }) module.exports = (withPWA({ webpack: config => { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack', 'url-loader'], }) return config }, images: { remotePatterns: [ { protocol: 'https', hostname: 'api.oki.re', }, { protocol: 'https', hostname: 'oki.re', }, { protocol: 'http', hostname: '127.0.0.1', }, { protocol: 'http', hostname: 'localhost', }, ] } }))