www/next.config.js

35 lines
828 B
JavaScript
Raw Normal View History

2021-12-07 22:38:31 -05:00
module.exports = {
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US'
},
2021-12-07 22:38:31 -05:00
webpack: (config, options) => {
config.experiments = { asset: true };
config.module.rules.push(
2022-04-23 19:03:43 -04:00
{
test: /\.ya?ml$/,
use: 'js-yaml-loader',
},
2021-12-07 22:38:31 -05:00
{
test: /\.svg$/,
2022-04-23 19:03:43 -04:00
use: [{ loader: "@svgr/webpack" }],
2021-12-07 22:38:31 -05:00
},
{
test: /\.md$/,
2022-04-23 19:03:43 -04:00
type: 'asset/source',
2021-12-07 22:38:31 -05:00
},
{
test: /\.otf$/,
2022-04-23 19:03:43 -04:00
type: 'asset/resource',
2021-12-07 22:38:31 -05:00
},
{
resourceQuery: /raw/,
type: 'asset/source',
2022-04-23 19:03:43 -04:00
},
2021-12-07 22:38:31 -05:00
);
return config
},
}