diff --git a/tubearchivist/www/next.config.js b/tubearchivist/www/next.config.js index 5493c33..e4066ee 100644 --- a/tubearchivist/www/next.config.js +++ b/tubearchivist/www/next.config.js @@ -1,5 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + images: { + domains: ["localhost", "tube.stiforr.tech"], + }, experimental: { runtime: "nodejs", }, diff --git a/tubearchivist/www/src/components/VideoList.tsx b/tubearchivist/www/src/components/VideoList.tsx index df2b248..21b66a8 100644 --- a/tubearchivist/www/src/components/VideoList.tsx +++ b/tubearchivist/www/src/components/VideoList.tsx @@ -43,7 +43,7 @@ export const VideoList = ({ videos }: { videos: Videos }) => { light="false" playing // TODO: Not currently working playsinline - url={`http://localhost:8000/media/${selectedVideoUrl.media_url}`} + url={`${process.env.NEXT_PUBLIC_TUBEARCHIVIST_URL}/media/${selectedVideoUrl.media_url}`} />