-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (34 loc) · 908 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/** @type {import('next').NextConfig} */
const nextConfig = {
// Configuration pour Webpack
webpack: (config) => {
config.module.rules.push({
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: {
loader: 'url-loader',
options: {
limit: 8192,
fallback: 'file-loader',
publicPath: '/_next/static/media/',
outputPath: 'static/media/',
name: '[name].[hash].[ext]',
}
}
});
return config;
},
// Configuration pour Turbopack
experimental: {
turbo: {
rules: {
// Configuration équivalente pour Turbopack
'*.woff': { loaders: ['url-loader'] },
'*.woff2': { loaders: ['url-loader'] },
'*.eot': { loaders: ['url-loader'] },
'*.ttf': { loaders: ['url-loader'] },
'*.otf': { loaders: ['url-loader'] },
},
},
},
};
module.exports = nextConfig;