File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
12const 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 ;
You can’t perform that action at this time.
0 commit comments