Skip to content

Commit 7d8ae32

Browse files
committed
Revert "NEX-200: Try to solve ci issue in storybook"
This reverts commit c189d6e.
1 parent c189d6e commit 7d8ae32

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

next/next.config.mjs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ const nextConfig = {
1919
cacheMaxMemorySize: 0, // Disable in-memory cache
2020

2121
images: {
22-
remotePatterns: process.env.STORYBOOK
23-
? []
24-
: [
25-
process.env.DRUPAL_BASE_URL_INTERNAL_IMAGES,
26-
process.env.NEXT_PUBLIC_DRUPAL_BASE_URL,
27-
].map((url = "") => {
28-
const [protocol, hostname] = url.split("://");
29-
if (!hostname || (protocol !== "https" && protocol !== "http")) {
30-
throw new Error(`Invalid images URL "${url}" in next.config.ts`);
31-
}
32-
return {
33-
protocol,
34-
hostname,
35-
pathname: "**",
36-
};
37-
}),
22+
remotePatterns: [
23+
process.env.DRUPAL_BASE_URL_INTERNAL_IMAGES,
24+
process.env.NEXT_PUBLIC_DRUPAL_BASE_URL,
25+
].map((url = "") => {
26+
const [protocol, hostname] = url.split("://");
27+
if (!hostname || (protocol !== "https" && protocol !== "http")) {
28+
throw new Error(`Invalid images URL "${url}" in next.config.ts`);
29+
}
30+
return {
31+
protocol,
32+
hostname,
33+
pathname: "**",
34+
};
35+
}),
3836
},
3937

4038
expireTime: 31536000, // 1 year (formerly experimental.swrDelta)

0 commit comments

Comments
 (0)