From 18466afc7801235eda899de978e2e1d0588dc219 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 9 Sep 2022 11:43:23 -0700 Subject: [PATCH] Fix API URLs from non "manifold.markets" domains --- web/pages/api/v0/_types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pages/api/v0/_types.ts b/web/pages/api/v0/_types.ts index 3aa15901..ea2f053b 100644 --- a/web/pages/api/v0/_types.ts +++ b/web/pages/api/v0/_types.ts @@ -5,7 +5,7 @@ import { Comment } from 'common/comment' import { Contract } from 'common/contract' import { User } from 'common/user' import { removeUndefinedProps } from 'common/util/object' -import { ENV_CONFIG } from 'common/envs/constants' +import { DOMAIN, ENV_CONFIG } from 'common/envs/constants' import { JSONContent } from '@tiptap/core' import { richTextToString } from 'common/util/parse' @@ -121,7 +121,7 @@ export function toLiteMarket(contract: Contract): LiteMarket { : closeTime, question, tags, - url: `https://manifold.markets/${creatorUsername}/${slug}`, + url: `https://${DOMAIN}/${creatorUsername}/${slug}`, pool, probability, p,