This commit is contained in:
2025-08-21 18:42:52 +02:00
parent de51060e27
commit 39697995d8
5 changed files with 30 additions and 8 deletions

View File

@@ -20,15 +20,18 @@ const nextConfig = {
},
},
webpack(config, options) {
// Add file-loader for .mp4 files
// Add url-loader for video files
config.module.rules.push({
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)$/,
use: [
{
loader: 'file-loader',
loader: 'url-loader',
options: {
limit: 8192,
fallback: 'file-loader',
publicPath: '/_next/static/media/',
outputPath: 'static/media/',
esModule: false,
name: '[path][name].[ext]',
},
},
],