File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ jiti('./env');
1010// const backendUrl = new URL(process.env.NEXT_PUBLIC_BACKEND_URL);
1111
1212const backendUrl = new URL ( process . env . BACKEND_URL ) ;
13+ const platformUrl = new URL ( process . env . NEXT_PUBLIC_PLATFORM_URL ) ; // Use NEXT_PUBLIC_ for client-side access
1314
1415const withNextIntl = createNextIntlPlugin ( ) ;
1516const nextConfig = withNextIntl ( {
@@ -20,11 +21,10 @@ const nextConfig = withNextIntl({
2021 protocol : backendUrl . protocol . slice ( 0 , - 1 ) ,
2122 hostname : backendUrl . hostname ,
2223 } ,
23- // {
24- // protocol: 'https',
25- // hostname: backendUrl.hostname,
26- // pathname: '/api/download/chart_image/**',
27- // },
24+ {
25+ domains : [ platformUrl . hostname ] ,
26+ unoptimized : true ,
27+ } ,
2828 ] ,
2929 } ,
3030} ) ;
You can’t perform that action at this time.
0 commit comments