2024-02-13 23:01:07 +00:00
|
|
|
const config = {
|
2023-09-20 04:25:34 +00:00
|
|
|
i18n: {
|
|
|
|
locales: ['en-US'],
|
|
|
|
defaultLocale: 'en-US'
|
|
|
|
},
|
|
|
|
webpack: (config, _options) => {
|
|
|
|
config.module.rules.push(
|
|
|
|
{
|
|
|
|
test: /\.ya?ml$/,
|
|
|
|
use: 'js-yaml-loader',
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.svg$/,
|
|
|
|
use: [{ loader: '@svgr/webpack' }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.md$/,
|
|
|
|
type: 'asset/source',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.otf$/,
|
|
|
|
type: 'asset/resource',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.txt$/,
|
|
|
|
type: 'asset/source',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
resourceQuery: /raw/,
|
|
|
|
type: 'asset/source',
|
|
|
|
},
|
|
|
|
);
|
|
|
|
|
2024-02-13 23:01:07 +00:00
|
|
|
return config;
|
2023-09-20 04:25:34 +00:00
|
|
|
},
|
2024-02-13 23:01:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (process.env.ANALYZE) {
|
|
|
|
const bundleAnalyzer = require('@next/bundle-analyzer')({
|
|
|
|
enabled: true
|
|
|
|
});
|
|
|
|
module.exports = bundleAnalyzer(config);
|
|
|
|
} else {
|
|
|
|
module.exports = config;
|
2023-10-30 04:18:38 +00:00
|
|
|
}
|