www/next.config.js

30 lines
698 B
JavaScript
Raw Normal View History

2021-12-08 03:38:31 +00:00
module.exports = {
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US'
},
2021-12-08 03:38:31 +00:00
webpack: (config, options) => {
config.experiments = { asset: true };
config.module.rules.push(
{
test: /\.svg$/,
use: [{ loader: "@svgr/webpack" }]
},
{
test: /\.md$/,
type: 'asset/source'
},
{
test: /\.otf$/,
type: 'asset/resource'
},
{
resourceQuery: /raw/,
type: 'asset/source',
}
);
return config
},
}