-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
37 lines (30 loc) · 837 Bytes
/
next.config.js
File metadata and controls
37 lines (30 loc) · 837 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Production optimization for Docker/AWS deployment
output: 'standalone', // Creates standalone build for Docker
compress: true,
webpack: (config, { isServer }) => {
// Support for WASM files (needed for VAD library)
config.experiments = {
...config.experiments,
asyncWebAssembly: true,
};
// Add fallbacks for Node.js modules in browser
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
module: false,
fs: false,
path: false,
crypto: false,
};
}
return config;
},
// Environment variables
env: {
NEXT_PUBLIC_APP_VERSION: process.env.npm_package_version || '1.0.0',
},
};
module.exports = nextConfig;