-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathnext.config.js
More file actions
43 lines (38 loc) · 1004 Bytes
/
next.config.js
File metadata and controls
43 lines (38 loc) · 1004 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
38
39
40
41
42
43
/** @type {import('next').NextConfig} */
const path = require('path');
const webpack = require("webpack");
module.exports = {
webpack: (config) => {
// Add path aliases
config.resolve.alias = {
...config.resolve.alias, // preserve existing aliases
'@components': path.join(__dirname, 'components'),
'@styles': path.join(__dirname, 'styles'),
// Add more aliases as needed
};
config.plugins.push(
new webpack.ContextReplacementPlugin(/keyv/, (data) => {
delete data.dependencies[0].critical;
return data;
})
);
return config;
},
transpilePackages: ["@repo/ui", "@repo/common", "@repo/recoil"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "d2szwvl7yo497w.cloudfront.net",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "appx-wsb-gcp.akamai.net.in",
port: "",
pathname: "/**",
}
],
},
};