-
Notifications
You must be signed in to change notification settings - Fork 10
/
next.config.js
40 lines (39 loc) · 995 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
37
38
39
40
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
appDir: true,
serverComponentsExternalPackages: [
"firebase-admin",
"@next-auth",
"@aws-sdk/client-ses",
],
},
images: {
domains: [
"images.unsplash.com",
"cdn.openart.ai",
"firebasestorage.googleapis.com",
"cdn-icons-png.flaticon.com",
"flowbite.s3.amazonaws.com",
"crust.winsomethemes.com",
"upload.wikimedia.org",
"swiperjs.com",
],
},
webpack:(config,{ isServer})=>{
const prefix = config.assetPrefix ?? config.basePath ?? '';
config.module.rules.push({
test: /\.mp4$/,
use: [{
loader: 'file-loader',
options: {
publicPath: `${prefix}/_next/static/media/`,
outputPath: `${isServer ? '../' : ''}static/media/`,
name: '[name].[hash].[ext]',
},
}],
});
return config}
};
module.exports = nextConfig;