www/next.config.js
2022-04-23 19:03:43 -04:00

35 lines
828 B
JavaScript
Executable File

module.exports = {
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US'
},
webpack: (config, options) => {
config.experiments = { asset: true };
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',
},
{
resourceQuery: /raw/,
type: 'asset/source',
},
);
return config
},
}