-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
30 lines (29 loc) · 889 Bytes
/
next.config.js
File metadata and controls
30 lines (29 loc) · 889 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
/** @type {import('next').NextConfig} */
const nextConfig = {
// Skip all checks and validations
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
// Ensure images are properly handled
images: {
unoptimized: true,
},
// Ensure environment variables are properly loaded
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'https://sentinal-ai-backend.vercel.app'
},
// Disable source maps in production
productionBrowserSourceMaps: false,
// Disable strict mode for compatibility
reactStrictMode: false,
// Disable powered by header
poweredByHeader: false,
// Output as standalone for Docker deployment
output: 'standalone',
// Transpile dependencies that use modern JavaScript features
transpilePackages: ['three', '@react-three/fiber', '@react-three/drei']
}
module.exports = nextConfig