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 a45e002 commit 1e93dc4Copy full SHA for 1e93dc4
next.config.mjs
@@ -9,14 +9,16 @@ jiti('./env');
9
10
// const backendUrl = new URL(process.env.NEXT_PUBLIC_BACKEND_URL);
11
12
+const backendUrl = new URL(process.env.BACKEND_URL);
13
+
14
const withNextIntl = createNextIntlPlugin();
15
const nextConfig = withNextIntl({
16
transpilePackages: ['opub-ui'],
17
images: {
18
remotePatterns: [
19
{
- protocol: new URL(process.env.BACKEND_URL).protocol.slice(0, -1),
- hostname: new URL(process.env.BACKEND_URL).hostname,
20
+ protocol: backendUrl.protocol.slice(0, -1),
21
+ hostname: backendUrl.hostname,
22
},
23
// {
24
// protocol: 'https',
0 commit comments