Skip to content

Commit 991d76d

Browse files
Merge pull request #35 from StabilityNexus/sarthak
Syles issues
2 parents 893c06c + 82e9d6b commit 991d76d

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

next.config.mjs

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
const isProd = process.env.NODE_ENV === 'production';
23

34
/** @type {import('next').NextConfig} */
@@ -6,40 +7,16 @@ const nextConfig = {
67
? {
78
output: 'export',
89
distDir: 'out',
9-
basePath: '/HackHub-WebUI',
10-
assetPrefix: '/HackHub-WebUI/',
11-
images: {
12-
unoptimized: true,
13-
remotePatterns: [
14-
{
15-
protocol: 'https',
16-
hostname: '**',
17-
},
18-
{
19-
protocol: 'http',
20-
hostname: '**',
21-
},
22-
],
23-
},
10+
basePath: '',
11+
assetPrefix: '',
12+
images: { unoptimized: true },
2413
}
2514
: {
2615
// Keep dev output in .next to avoid self-triggering file watchers
2716
distDir: '.next',
2817
basePath: '',
2918
assetPrefix: '',
30-
images: {
31-
unoptimized: false,
32-
remotePatterns: [
33-
{
34-
protocol: 'https',
35-
hostname: '**',
36-
},
37-
{
38-
protocol: 'http',
39-
hostname: '**',
40-
},
41-
],
42-
},
19+
images: { unoptimized: false },
4320
// When using the webpack dev server, ignore generated dirs to prevent rebuild loops
4421
webpackDevMiddleware(config) {
4522
config.watchOptions = {
@@ -51,4 +28,4 @@ const nextConfig = {
5128
}),
5229
};
5330

54-
export default nextConfig;
31+
export default nextConfig;

0 commit comments

Comments
 (0)