-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathnext.config.mjs
More file actions
44 lines (40 loc) · 1021 Bytes
/
next.config.mjs
File metadata and controls
44 lines (40 loc) · 1021 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
44
import path from "path";
const nextConfig = {
output: "standalone",
reactStrictMode: true,
turbopack: {},
serverExternalPackages: [
"@boxyhq/saml-jackson",
"typeorm",
"kysely",
"pg",
"better-sqlite3",
"nanoid",
"uuid",
],
outputFileTracingIncludes: {
"**": ["./src/app/db/migrations/**/*", "./src/app/i18n/**/*"],
},
experimental: {
proxyClientMaxBodySize: "200mb",
serverActions: {
bodySizeLimit: "2mb",
},
},
allowedDevOrigins: [process.env.ALLOWED_DEV_ORIGIN].filter(Boolean),
// this resolves the issue of yjs being imported twice
webpack: (config, { isServer }) => {
config.resolve.alias = {
...config.resolve.alias,
yjs: path.resolve(import.meta.dirname, "node_modules/yjs/dist/yjs.cjs"),
};
if (isServer) {
config.ignoreWarnings = [
{ module: /node_modules\/typeorm/ },
{ module: /node_modules\/@boxyhq\/saml-jackson/ },
];
}
return config;
},
};
export default nextConfig;