Spaces:
Sleeping
Sleeping
Update next.config.mjs
Browse files- next.config.mjs +2 -9
next.config.mjs
CHANGED
@@ -3,7 +3,6 @@ const nextConfig = {
|
|
3 |
output: 'export',
|
4 |
trailingSlash: true,
|
5 |
distDir: 'out',
|
6 |
-
// Remove serverExternalPackages - not needed for static export
|
7 |
eslint: {
|
8 |
ignoreDuringBuilds: true,
|
9 |
},
|
@@ -11,17 +10,11 @@ const nextConfig = {
|
|
11 |
ignoreBuildErrors: true,
|
12 |
},
|
13 |
images: {
|
14 |
-
unoptimized: true,
|
15 |
-
// Remove domains and remotePatterns for static export
|
16 |
},
|
17 |
-
// Add environment variables for your backend
|
18 |
env: {
|
19 |
NEXT_PUBLIC_BACKEND_URL: 'https://vaibhav07112004-vibe-detection-backend-api.hf.space'
|
20 |
-
}
|
21 |
-
// Optimize for static hosting
|
22 |
-
experimental: {
|
23 |
-
esmExternals: false,
|
24 |
-
},
|
25 |
}
|
26 |
|
27 |
export default nextConfig
|
|
|
3 |
output: 'export',
|
4 |
trailingSlash: true,
|
5 |
distDir: 'out',
|
|
|
6 |
eslint: {
|
7 |
ignoreDuringBuilds: true,
|
8 |
},
|
|
|
10 |
ignoreBuildErrors: true,
|
11 |
},
|
12 |
images: {
|
13 |
+
unoptimized: true,
|
|
|
14 |
},
|
|
|
15 |
env: {
|
16 |
NEXT_PUBLIC_BACKEND_URL: 'https://vaibhav07112004-vibe-detection-backend-api.hf.space'
|
17 |
+
}
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
|
20 |
export default nextConfig
|