word-to-code / next.config.mjs
tinazone's picture
Upload 44 files
21d7fc3 verified
raw
history blame
494 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['localhost'],
},
webpack: (config) => {
config.module.rules.push({
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]',
publicPath: '/_next/static/fonts/',
outputPath: 'static/fonts/',
},
},
});
return config;
},
};
export default nextConfig;