Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: don't use next/image for svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctm97 committed Feb 18, 2022
1 parent 79d975b commit d4c8b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
reactStrictMode: true,
images: {
domains: ["api.producthunt.com"],
},
};
4 changes: 2 additions & 2 deletions pages/[[...slug]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import React, {
useRef,
useState,
} from "react";
import Image from "next/image";
import { ImSpinner } from "react-icons/im";
import {
HiCheck,
Expand Down Expand Up @@ -209,7 +208,8 @@ const Index: NextPage<StaticProps> = ({ initialCommandString }) => {
rel="noopener noreferrer"
className="absolute bottom-[3.25rem]"
>
<Image
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332221&theme=light"
alt="shell.how - Explain how your shell command works | Product Hunt"
width={250}
Expand Down

1 comment on commit d4c8b1c

@vercel
Copy link

@vercel vercel bot commented on d4c8b1c Feb 18, 2022

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.