Skip to content

Commit 035ebbe

Browse files
committed
NEX-195: Use public url for FormattedText image src
This avoids the possibility of trying to access a server env var on the client
1 parent 70bd4b6 commit 035ebbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next/src/components/formatted-text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const options: HTMLReactParserOptions = {
3434
if (isRelative(src)) {
3535
return (
3636
<Image
37-
src={`${env.DRUPAL_BASE_URL_INTERNAL}${src}`}
37+
src={`${env.NEXT_PUBLIC_DRUPAL_BASE_URL}${src}`}
3838
width={numberWidth}
3939
height={numberHeight}
4040
alt={alt}

0 commit comments

Comments
 (0)