Skip to content

Commit

Permalink
Updating register
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhectorsosa committed Feb 14, 2024
1 parent 978cd3d commit faa1e3c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions playground/app/register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,6 @@ const FormSchema = z.object({
password: z.string().min(5, { message: "Must be 5 or more characters long" }),
});

const getURL = () => {
const base = process?.env?.NEXT_PUBLIC_VERCEL_URL ?? "http://localhost:3000";
return `${base.startsWith("http") ? base : `https://${base}`}/`.replace(
/\/+$/,
"/"
);
};

const SETTINGS_PROFILE_URL = "settings/profile";

const RegisterFormComponent: React.FC<{
onSubmit: ({
email,
Expand Down Expand Up @@ -110,7 +100,6 @@ const RegisterFormComponent: React.FC<{
onSubmit({
email,
password,
options: { emailRedirectTo: getURL() + SETTINGS_PROFILE_URL },
});
})}
className="space-y-6"
Expand Down

0 comments on commit faa1e3c

Please sign in to comment.