-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathnext.config.ts
More file actions
32 lines (29 loc) · 841 Bytes
/
next.config.ts
File metadata and controls
32 lines (29 loc) · 841 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
import type { NextConfig } from "next";
import packageJson from "./package.json";
const nextConfig: NextConfig = {
env: {
NEXT_PUBLIC_APP_VERSION: packageJson.version,
},
// Use standalone output for Docker/Kubernetes deployments
// For Vercel, this is automatically handled
output: process.env.DOCKER_BUILD === 'true' ? 'standalone' : undefined,
// Externalize native modules to reduce bundle size and memory usage
// These packages will be loaded from node_modules at runtime
serverExternalPackages: ['pg', 'mysql2', 'mongodb', 'better-sqlite3', 'ssh2'],
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
},
],
},
typescript: {
ignoreBuildErrors: true,
},
};
export default nextConfig;