Files
supabase/apps/studio/data/config/keys.ts
Ivan Vasilov 3f75f791a6 feat: Show a badge if the pgbouncer hasn't been removed. (#20830)
* Add a badge if the pgbouncer hasn't been removed.

* Force the response to be a boolean.

* Add a CSP exception, just for testing.

* Minor correction for the CSP rule.

* Add a API route for checking whether the pgbouncer has been removed.

* Log the response and error.

* Minor fixes.

* Update based on feedback

* Add additional sanity checks on pg bouncer nextjs endpoint

* Update check

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-01-30 14:10:57 +07:00

15 lines
881 B
TypeScript

export const configKeys = {
pgBouncerStatus: (projectRef: string | undefined) =>
['projects', projectRef, 'pgbouncer'] as const,
settings: (projectRef: string | undefined) => ['projects', projectRef, 'settings'] as const,
api: (projectRef: string | undefined) => ['projects', projectRef, 'settings', 'api'] as const,
postgrest: (projectRef: string | undefined) => ['projects', projectRef, 'postgrest'] as const,
jwtSecretUpdatingStatus: (projectRef: string | undefined) =>
['projects', projectRef, 'jwt-secret-updating-status'] as const,
storage: (projectRef: string | undefined) => ['projects', projectRef, 'storage'] as const,
upgradeEligibility: (projectRef: string | undefined) =>
['projects', projectRef, 'upgrade-eligibility'] as const,
upgradeStatus: (projectRef: string | undefined) =>
['projects', projectRef, 'upgrade-status'] as const,
}