From fc84300712624e8b50f6812e9f11e83cc2b36897 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 17 Nov 2022 20:16:24 +0000 Subject: [PATCH] tweak: change getBasePath implementation Unnecessary to expose the vercel url. --- src/web/questions/pages/QuestionPage.tsx | 2 +- src/web/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/questions/pages/QuestionPage.tsx b/src/web/questions/pages/QuestionPage.tsx index c3030a5..737974b 100644 --- a/src/web/questions/pages/QuestionPage.tsx +++ b/src/web/questions/pages/QuestionPage.tsx @@ -72,7 +72,7 @@ const Section: React.FC<{ title: string; id?: string }> = ({ const EmbedSection: React.FC<{ question: QuestionWithHistoryFragment }> = ({ question, }) => { - const url = /*getBasePath() + */ `https://metaforecast.org/questions/embed/${question.id}`; + const url = `https://${getBasePath()}/questions/embed/${question.id}`; return (
{ if (process.env.NEXT_PUBLIC_VERCEL_URL) { - return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`; + return `https://metaforecast.org`;//`https://${process.env.NEXT_PUBLIC_VERCEL_URL}`; } // can be used for local development if you prefer non-default port