Skip to content

Commit a45e002

Browse files
committed
Fix build issue by removing the public env URL
1 parent 3a01471 commit a45e002

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

next.config.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import createNextIntlPlugin from 'next-intl/plugin';
77
const jiti = createJiti(fileURLToPath(import.meta.url));
88
jiti('./env');
99

10-
const backendUrl = new URL(process.env.NEXT_PUBLIC_BACKEND_URL);
10+
// const backendUrl = new URL(process.env.NEXT_PUBLIC_BACKEND_URL);
1111

1212
const withNextIntl = createNextIntlPlugin();
1313
const nextConfig = withNextIntl({
@@ -18,11 +18,11 @@ const nextConfig = withNextIntl({
1818
protocol: new URL(process.env.BACKEND_URL).protocol.slice(0, -1),
1919
hostname: new URL(process.env.BACKEND_URL).hostname,
2020
},
21-
{
22-
protocol: 'https',
23-
hostname: backendUrl.hostname,
24-
pathname: '/api/download/chart_image/**',
25-
},
21+
// {
22+
// protocol: 'https',
23+
// hostname: backendUrl.hostname,
24+
// pathname: '/api/download/chart_image/**',
25+
// },
2626
],
2727
},
2828
});

0 commit comments

Comments
 (0)