We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbdc2d commit bd098c1Copy full SHA for bd098c1
next.config.mjs
@@ -7,9 +7,21 @@ import createNextIntlPlugin from 'next-intl/plugin';
7
const jiti = createJiti(fileURLToPath(import.meta.url));
8
jiti('./env');
9
10
+const backendUrl = new URL(process.env.NEXT_PUBLIC_BACKEND_URL);
11
+
12
13
const withNextIntl = createNextIntlPlugin();
14
const nextConfig = withNextIntl({
15
transpilePackages: ['opub-ui'],
16
+ images: {
17
+ remotePatterns: [
18
+ {
19
+ protocol: 'https',
20
+ hostname: backendUrl.hostname,
21
+ pathname: '/api/download/chart_image/**',
22
+ },
23
+ ],
24
25
});
26
27
export default withSentryConfig(nextConfig, {
0 commit comments