forked from gizmodata/gizmosql-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
38 lines (32 loc) · 729 Bytes
/
next.config.js
File metadata and controls
38 lines (32 loc) · 729 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
/** @type {import('next').NextConfig} */
const nextConfig = {
// Output standalone build for packaging
output: 'standalone',
// Enable server actions
experimental: {
serverActions: {
bodySizeLimit: '10mb',
},
},
images: {
unoptimized: true,
},
// Configure webpack for parquet-wasm
webpack: (config, { isServer }) => {
// Handle WASM files
config.experiments = {
...config.experiments,
asyncWebAssembly: true,
};
// Fix for parquet-wasm in client-side
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
};
}
return config;
},
};
module.exports = nextConfig;