ok
This commit is contained in:
@@ -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]',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user