generated from blockmatic-icebox/powerstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
executable file
·46 lines (45 loc) · 1.11 KB
/
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
38
39
40
41
42
43
44
45
46
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV === 'development',
scope: '/',
})
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'replicate.com',
},
{
protocol: 'https',
hostname: 'replicate.delivery',
},
{
protocol: 'https',
hostname: 'bestaiprompts.art',
},
{
protocol: 'https',
hostname: 'i.imgur.com',
},
],
domains: process.env.NEXT_PUBLIC_IMAGES_DOMAIN ? [process.env.NEXT_PUBLIC_IMAGES_DOMAIN] : [],
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
// i18n: {
// // Initial supported locales for American Region. Locales MUST match with DatoCMS.SiteLocale
// locales: ['en_US', 'es', 'fr_CA', 'pt_BR'],
// // As always, en_US is our default lang
// defaultLocale: 'en_US',
// },
}
module.exports = withPWA(nextConfig)