Skip to content

Commit

Permalink
disable next.js img for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed Dec 23, 2023
1 parent aab7404 commit c9f58c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/content/templates/Simple.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Content } from 'data/graphql-generated';
import ReactMarkdown from 'react-markdown';
import { constructNextImageURL } from 'util/url-factory';
import { omit } from 'lodash';
import rehypeRaw from 'rehype-raw';
import { styled } from 'components';
Expand All @@ -27,8 +26,9 @@ const customRenderers = {
img: (props: any) => (
<span className={`image image-${props.title || ''}`}>
<span className="image-inner-wrapper">
{/* <img {...omit(props, 'node', 'src')} className="u-photo" src={constructNextImageURL(props.src)} /> */}
{/* eslint-disable-next-line */}
<img {...omit(props, 'node', 'src')} className="u-photo" src={constructNextImageURL(props.src)} />
<img {...omit(props, 'node', 'src')} className="u-photo" src={props.src} />
</span>
<span className="caption">{props.alt}</span>
</span>
Expand Down

1 comment on commit c9f58c4

@vercel
Copy link

@vercel vercel bot commented on c9f58c4 Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.