diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/AddEnvironmentModal.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/AddEnvironmentModal.tsx index dfe138a05a..61841165b6 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/AddEnvironmentModal.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/AddEnvironmentModal.tsx @@ -19,7 +19,7 @@ const schema = z.object({ environmentName: z .string() .min(1, { message: "Environment Name field must be at least 1 character" }), - environmentSlug: slugSchema() + environmentSlug: slugSchema({ max: 64 }) }); export type FormData = z.infer; diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/UpdateEnvironmentModal.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/UpdateEnvironmentModal.tsx index cf7ee5440e..f40091303c 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/UpdateEnvironmentModal.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/UpdateEnvironmentModal.tsx @@ -17,7 +17,7 @@ type Props = { const schema = z.object({ name: z.string(), - slug: slugSchema({ min: 1 }) + slug: slugSchema({ min: 1, max: 64 }) }); export type FormData = z.infer;