-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
38 lines (38 loc) · 940 Bytes
/
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
/** @type {import('next').NextConfig} */
module.exports = {
i18n: {
locales: ['en', 'ja'],
defaultLocale: 'ja',
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
/*
* Disabled for babel requirements
*/
/*
if (!dev) {
// https://formatjs.io/docs/guides/advanced-usage#react-intl-without-parser-40-smaller
config.resolve.alias['@formatjs/icu-messageformat-parser'] =
'@formatjs/icu-messageformat-parser/no-parser';
}
*/
config.resolve.modules.push('.');
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader',
});
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: 'file-loader',
options: {
outputPath: 'static/_files',
publicPath: '/_next/static/_files',
},
},
],
});
return config;
},
swcMinify: true,
};