File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments