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

Commit d4c8b1c

Browse files
committed
fix: don't use next/image for svgs
1 parent 79d975b commit d4c8b1c

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
module.exports = {
22
reactStrictMode: true,
3-
images: {
4-
domains: ["api.producthunt.com"],
5-
},
63
};

pages/[[...slug]].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import React, {
77
useRef,
88
useState,
99
} from "react";
10-
import Image from "next/image";
1110
import { ImSpinner } from "react-icons/im";
1211
import {
1312
HiCheck,
@@ -209,7 +208,8 @@ const Index: NextPage<StaticProps> = ({ initialCommandString }) => {
209208
rel="noopener noreferrer"
210209
className="absolute bottom-[3.25rem]"
211210
>
212-
<Image
211+
{/* eslint-disable-next-line @next/next/no-img-element */}
212+
<img
213213
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332221&theme=light"
214214
alt="shell.how - Explain how your shell command works | Product Hunt"
215215
width={250}

0 commit comments

Comments
 (0)