-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
47 lines (44 loc) · 1.01 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
47
const { withSentryConfig } = require("@sentry/nextjs");
const modularizeImports = require("./modularizeImports");
const imageDomains = require("./imageDomains");
const {
PrismaEnginePlugin,
} = require("./database/prisma/utils/engine-webpack");
const nextConfig = {
async redirects() {
return [
{
source: "/proposals/:path*",
destination: "/nouns/proposals/:path*",
permanent: true,
},
];
},
reactStrictMode: false,
poweredByHeader: false,
transpilePackages: ["ui"],
experimental: {
appDir: true,
serverActions: true,
serverComponentsExternalPackages: [
"prisma-social",
"prisma-governance",
"prisma-eth",
],
},
images: {
...imageDomains,
},
modularizeImports,
webpack: (config, { isServer }) => {
if (isServer) {
config.plugins = [...config.plugins, new PrismaEnginePlugin()];
}
return config;
},
};
module.exports = withSentryConfig(
nextConfig,
{ silent: true },
{ hideSourcemaps: false }
);