Scheduling infrastructure for absolutely everyone.
chore: remove CF-region (#13828)
Udit Takkare39bf37f917a
diff --git a/packages/trpc/server/routers/publicViewer/countryCode.handler.ts b/packages/trpc/server/routers/publicViewer/countryCode.handler.tsindex 723632e0888..ed67a3d959c 100644--- a/packages/trpc/server/routers/publicViewer/countryCode.handler.ts+++ b/packages/trpc/server/routers/publicViewer/countryCode.handler.ts@@ -7,8 +7,7 @@ type CountryCodeOptions = {export const countryCodeHandler = async ({ ctx }: CountryCodeOptions) => {const { req } = ctx;- const countryCode: string | string[] =- req?.headers?.["cf-ipcountry"] ?? req?.headers?.["x-vercel-ip-country"] ?? "";+ const countryCode: string | string[] = req?.headers?.["x-vercel-ip-country"] ?? "";return { countryCode: Array.isArray(countryCode) ? countryCode[0] : countryCode };};