word-to-code / next.config.mjs
tinazone's picture
Update next.config.mjs
8223ade verified
raw
history blame contribute delete
579 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
images: {
domains: ['localhost'],
},
experimental: {
outputFileTracingRoot: undefined,
},
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;