-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
43 lines (40 loc) · 1.07 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
var path = require('path');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
/** @type {import("next").NextConfig} */
module.exports = withBundleAnalyzer({
// This is needed to get dynamic SVG import working
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
// @see https://formatjs.io/docs/guides/advanced-usage/
/*config.module.resolve.alias = {
'@formatjs/icu-messageformat-parser': '@formatjs/icu-messageformat-parser/no-parser'
}*/
return config;
},
sassOptions: {
includePaths: [path.join(__dirname, 'src/styles')],
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'zetter.gallery',
port: '443',
pathname: '/**',
},
],
domains: ['[::1]', 'localhost', 'zetter.gallery'],
},
i18n: {
locales: ['en', 'ru', 'zh', 'pl', 'fr', 'de', 'tr', 'uk', 'pt'],
defaultLocale: 'en',
localeDetection: true,
},
output: 'standalone',
reactStrictMode: true,
});