Skip to content

Commit 87df19d

Browse files
committed
update next config to load images
1 parent f795b40 commit 87df19d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

next.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jiti('./env');
1010
// const backendUrl = new URL(process.env.NEXT_PUBLIC_BACKEND_URL);
1111

1212
const 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

1415
const withNextIntl = createNextIntlPlugin();
1516
const 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
});

0 commit comments

Comments
 (0)