mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
If a user selects the "Performance" category on the support ticket form and their project ref maps to a Nano project on a paid plan, show an inline tip in the form itself, before submission, pointing to a troubleshooting guide covering the free Micro upgrade and the usual perf debugging steps (query optimization, advisors, etc.). <img width="523" height="327" alt="Screenshot 2026-11-23 at 6 56 05 PM" src="https://github.com/user-attachments/assets/b0b69866-3e34-443a-8405-23279e07e25c" />
11 lines
374 B
TypeScript
11 lines
374 B
TypeScript
import type { OrganizationPlanID } from '@/data/organizations/organization-query'
|
|
|
|
/** The free Micro upgrade applies to Nano projects on any paid plan. */
|
|
export const isEligibleForFreeMicroUpgrade = ({
|
|
planId,
|
|
computeSize,
|
|
}: {
|
|
planId?: OrganizationPlanID
|
|
computeSize?: string
|
|
}) => !!planId && planId !== 'free' && planId !== 'platform' && computeSize === 'nano'
|