Skip to content

๐Ÿชข Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: update region switch (#12566)

Steffen Schmitza0abb26101f7
diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
index d23def7399..b4896cad75 100644
--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
@@ -35,28 +35,46 @@ const regions =
flag: "๐Ÿšง",
},
]
- : [
- {
- name: "US",
- hostname: "us.cloud.langfuse.com",
- flag: "๐Ÿ‡บ๐Ÿ‡ธ",
- },
- {
- name: "EU",
- hostname: "cloud.langfuse.com",
- flag: "๐Ÿ‡ช๐Ÿ‡บ",
- },
- {
- name: "JP",
- hostname: "jp.cloud.langfuse.com",
- flag: "๏ธ๐Ÿ‡ฏ๐Ÿ‡ต",
- },
- {
- name: "HIPAA",
- hostname: "hipaa.cloud.langfuse.com",
- flag: "โš•๏ธ",
- },
- ];
+ : env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "JP"
+ ? [
+ {
+ name: "JP",
+ hostname: "jp.cloud.langfuse.com",
+ flag: "๏ธ๐Ÿ‡ฏ๐Ÿ‡ต",
+ },
+ {
+ name: "US",
+ hostname: "us.cloud.langfuse.com",
+ flag: "๐Ÿ‡บ๐Ÿ‡ธ",
+ },
+ {
+ name: "EU",
+ hostname: "cloud.langfuse.com",
+ flag: "๐Ÿ‡ช๐Ÿ‡บ",
+ },
+ {
+ name: "HIPAA",
+ hostname: "hipaa.cloud.langfuse.com",
+ flag: "โš•๏ธ",
+ },
+ ]
+ : [
+ {
+ name: "US",
+ hostname: "us.cloud.langfuse.com",
+ flag: "๐Ÿ‡บ๐Ÿ‡ธ",
+ },
+ {
+ name: "EU",
+ hostname: "cloud.langfuse.com",
+ flag: "๐Ÿ‡ช๐Ÿ‡บ",
+ },
+ {
+ name: "HIPAA",
+ hostname: "hipaa.cloud.langfuse.com",
+ flag: "โš•๏ธ",
+ },
+ ];
export function CloudRegionSwitch({
isSignUpPage,