Temp check supavisor_enabled from connectionString

This commit is contained in:
Joshen Lim committed 2023-08-11 11:18:31 +08:00
1 parent 91f8673630
commit 9a759d1071
1 file changed
+7 -1
@@ -89,7 +89,13 @@ const ConnectionPooling = () => {
) : (
<PgbouncerConfig
projectRef={projectRef}
bouncerInfo={bouncerInfo}
// [Joshen TODO] remove this check once API PR has been deployed:
// https://github.com/supabase/infrastructure/pull/14173
bouncerInfo={{
...bouncerInfo,
supavisor_enabled:
poolingConfiguration.connectionString.includes('pooler.supabase.com'),
}}
connectionInfo={connectionInfo}
/>
)}