diff --git a/next.config.ts b/next.config.ts index 8583ac6..8f13165 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,11 +1,18 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ - images: { - remotePatterns: [new URL('https://upload.wikimedia.org/**')] - }, - output: "standalone", + /* config options here */ + images: { + remotePatterns: [ + new URL("https://upload.wikimedia.org/**"), + { + protocol: "https", + hostname: "archivebackend.feroxfoxxo.com", + pathname: "**", + }, + ], + }, + output: "standalone", }; export default nextConfig; diff --git a/src/components/client/memory-content-card.tsx b/src/components/client/memory-content-card.tsx index e02158c..6e2c02c 100644 --- a/src/components/client/memory-content-card.tsx +++ b/src/components/client/memory-content-card.tsx @@ -15,11 +15,13 @@ import { } from "lucide-react" import { Dialog, + DialogTitle, DialogContent, DialogTrigger, DialogClose, } from "@/components/ui/dialog" import { useState } from "react" +import Image from "next/image" type MemoryContentCardProps = { postId: string @@ -41,18 +43,25 @@ export const MemoryContentCard = ({ postId }: MemoryContentCardProps) => { className="focus:ring-primary h-full w-full rounded object-cover transition-transform hover:scale-105 focus:ring-2 focus:outline-none" onClick={() => setSelectedImage(fileUrl)} > - {`Image - + Media + + {`Image diff --git a/src/components/generic/MemoryCard.tsx b/src/components/generic/MemoryCard.tsx index 2f14277..fcf992b 100644 --- a/src/components/generic/MemoryCard.tsx +++ b/src/components/generic/MemoryCard.tsx @@ -24,6 +24,7 @@ import { useFavouritePost, useUnfavouritePost } from "@/lib/mutations/posts" import { cn } from "@/lib/utils" import { StarIcon } from "lucide-react" import { Button } from "../ui/button" +import Image from "next/image" import Link from "next/link" dayjs.extend(utc) @@ -125,21 +126,25 @@ export const MemoryCard: FC = memo( // NAH YOU SUCK ~ brandon - {`Image - + Image - {`Image @@ -151,21 +156,25 @@ export const MemoryCard: FC = memo( .map((image, index) => ( - {`Image - + Image - {`Image