The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add trim to zod validation for project name in create project form (#37590)
Joshen Lim4f985a2be50b
diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsxindex 99d23500a1b..203dd05d980 100644--- a/apps/studio/pages/new/[slug].tsx+++ b/apps/studio/pages/new/[slug].tsx@@ -111,6 +111,7 @@ const FormSchema = z.object({}),projectName: z.string()+ .trim().min(1, 'Please enter a project name.') // Required field check.min(3, 'Project name must be at least 3 characters long.') // Minimum length check.max(64, 'Project name must be no longer than 64 characters.'), // Maximum length check