forked from FoloUp/FoloUp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
33 lines (31 loc) 路 784 Bytes
/
Copy pathnext.config.js
File metadata and controls
33 lines (31 loc) 路 784 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
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: "/",
destination: "/dashboard",
permanent: true,
},
];
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "img.clerk.com",
},
],
},
webpack: (webpackConfig, { webpack }) => {
webpackConfig.plugins.push(
// Remove node: from import specifiers, because Next.js does not yet support node: scheme
// https://github.com/vercel/next.js/issues/28774
new webpack.NormalModuleReplacementPlugin(/^node:/, (resource) => {
resource.request = resource.request.replace(/^node:/, "");
}),
);
return webpackConfig;
},
};
module.exports = nextConfig;