From be72bd2c1198f4948fa79c49b77404e6fb042271 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 4 Oct 2024 17:02:20 -0500 Subject: [PATCH] Log basurl --- src/components/forms/VideoForm.js | 1 + src/pages/draft/[slug]/index.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/forms/VideoForm.js b/src/components/forms/VideoForm.js index 2436618..86e4504 100644 --- a/src/components/forms/VideoForm.js +++ b/src/components/forms/VideoForm.js @@ -63,6 +63,7 @@ const VideoForm = ({ draft = null }) => { } else if (videoUrl.includes('.mp4') || videoUrl.includes('.mov') || videoUrl.includes('.avi') || videoUrl.includes('.wmv') || videoUrl.includes('.flv') || videoUrl.includes('.webm')) { const baseUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000"; + console.log("BASE URL", baseUrl); const videoEmbed = `
`; embedCode = videoEmbed; } diff --git a/src/pages/draft/[slug]/index.js b/src/pages/draft/[slug]/index.js index ae6c0b1..a2837b2 100644 --- a/src/pages/draft/[slug]/index.js +++ b/src/pages/draft/[slug]/index.js @@ -220,7 +220,8 @@ export default function Draft() { // todo update this for dev and prod const extractedVideoId = draft.content.split('?videoKey=')[1].split('"')[0]; videoId = extractedVideoId; - const baseUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000" + const baseUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000"; + console.log("BASE URL", baseUrl); const videoEmbed = `
`; if (draft?.price) { const encryptedVideoUrl = await encryptContent(videoEmbed);