-
khadija khouili a rédigébe903b73
next.config.mjs 556 o
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, options) => {
// Règle pour les fichiers PDF
config.module.rules.push({
test: /\.(pdf)$/,
use: [
{
loader: 'file-loader',
options: {
publicPath: '/_next',
name: 'static/media/[name].[hash].[ext]',
},
},
],
});
return config;
},
};
export default nextConfig;