From 173f1d976d7174485d2c441a1c6827fb836e468c Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:58:58 +0200 Subject: [PATCH] show author username and profile icon on individual video page --- next.config.mjs | 6 +++++ src/pages/share/[videoId].tsx | 39 +++++++++++++++++++++++++++++---- src/server/api/routers/video.ts | 3 +++ 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index b185604..b17554b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -32,6 +32,12 @@ const config = { port: '', pathname: '/**', }, + { + protocol: 'https', + hostname: '*.githubusercontent.com', + port: '', + pathname: '/**', + }, ], }, }; diff --git a/src/pages/share/[videoId].tsx b/src/pages/share/[videoId].tsx index 6308314..800323c 100644 --- a/src/pages/share/[videoId].tsx +++ b/src/pages/share/[videoId].tsx @@ -5,6 +5,7 @@ import { api } from "~/utils/api"; import ReactPlayer from "react-player"; import { useRouter } from "next/router"; import Link from "next/link"; +import Image from "next/image"; const VideoList: NextPage = () => { const router = useRouter(); @@ -52,11 +53,8 @@ const VideoList: NextPage = () => { -