-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
46 lines (38 loc) · 1.5 KB
/
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
37
38
39
40
41
42
43
44
45
46
/* module.exports = {
webpack: (config, { isServer }) => {
// Solo aplicar esta configuración en el lado del cliente
if (!isServer) {
config.module.rules.push({
test: /\.(mp4|webm)$/, // Extensión de los archivos de video que deseas manejar
use: [
{
loader: 'file-loader',
options: {
publicPath: './src/components/VideoBackground/VideoBackground.js', // Ruta pública donde se colocarán los archivos de video compilados
outputPath: '/public/videos', // Ruta relativa dentro de la carpeta .next donde se colocarán los archivos de video compilados
name: '[name].[ext]', // Nombre de archivo de salida (puedes ajustarlo según tus necesidades)
},
},
],
});
}
return config;
},
}; */
// module.exports = {
// webpack: (config, options) => {
// config.module.rules.push( {
// test: /\.(jpe?g|png|svg|gif|ico|eot|ttf|woff|woff2|mp4|pdf|webm)$/,
// type: 'asset',
// generator: {
// filename: 'static/chunks/[path][name].[hash][ext]'
// },
// });
// return config;
// }
// };
/** @type {import {'next' }.NextConfig} */
const nextConfig ={}
module.exports = nextConfig;
const withVideos = require('next-videos');
module.exports = withVideos();