There was an error while loading. Please reload this page.
1 parent c61643f commit 2c59176Copy full SHA for 2c59176
apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.utils.ts
@@ -49,7 +49,11 @@ export const constructConnStringSyntax = (
49
}
50
51
export const getPoolerTld = (connString: string) => {
52
- const segment = connString.split('pooler.supabase.')[1]
53
- const tld = segment.split(':6543')[0]
54
- return tld
+ try {
+ const segment = connString.split('pooler.supabase.')[1]
+ const tld = segment.split(':6543')[0]
55
+ return tld
56
+ } catch {
57
+ return 'com'
58
+ }
59
0 commit comments