Scheduling infrastructure for absolutely everyone.
fix: country code [Testing] (#12807)
Udit Takkarb6279f4128d8
diff --git a/packages/trpc/server/routers/publicViewer/countryCode.handler.ts b/packages/trpc/server/routers/publicViewer/countryCode.handler.tsindex ed67a3d959c..181a10a1cb5 100644--- a/packages/trpc/server/routers/publicViewer/countryCode.handler.ts+++ b/packages/trpc/server/routers/publicViewer/countryCode.handler.ts@@ -7,7 +7,9 @@ type CountryCodeOptions = {export const countryCodeHandler = async ({ ctx }: CountryCodeOptions) => {const { req } = ctx;- const countryCode: string | string[] = req?.headers?.["x-vercel-ip-country"] ?? "";+ // const countryCode: string | string[] =+ // req?.headers?.["cf-ipcountry"] ?? req?.headers?.["x-vercel-ip-country"] ?? "";+ const countryCode: string | string[] = req?.headers?.["cf-ipcountry"] ?? "";return { countryCode: Array.isArray(countryCode) ? countryCode[0] : countryCode };};