-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.js
More file actions
37 lines (33 loc) · 809 Bytes
/
next.config.js
File metadata and controls
37 lines (33 loc) · 809 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
images: {
formats: ["image/webp"],
remotePatterns: [
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "res.cloudinary.com",
},
],
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.module.rules.push({
test: /\.(ogg|mp3|wav|mpe?g)$/i,
loader: "file-loader",
options: {
publicPath: "/_next/static/audio", // Adjust the path as needed
outputPath: "static/audio", // Adjust the path as needed
name: "[name].[ext]",
esModule: false,
},
});
}
return config;
},
};
module.exports = nextConfig;