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