Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Move auth

Jakub Novaka2e6ae68c066
diff --git a/apps/web/src/app/(docs)/docs/getting-started/api-key/APIKey.tsx b/apps/web/src/app/(docs)/docs/getting-started/api-key/APIKey.tsx
index 86f9c9b42..68487771f 100644
--- a/apps/web/src/app/(docs)/docs/getting-started/api-key/APIKey.tsx
+++ b/apps/web/src/app/(docs)/docs/getting-started/api-key/APIKey.tsx
@@ -117,7 +117,7 @@ function APIKey() {
) : (
<div className="flex flex-col items-start justiy-start gap-4 mt-6">
<span>You can get your API key by signing up.</span>
- <Link href="/dashboard/sign-up">
+ <Link href="/auth/sign-up">
<Button>Sign up to get your API key</Button>
</Link>
</div>
diff --git a/apps/web/src/app/(docs)/docs/pricing/SwitchToHobbyButton.tsx b/apps/web/src/app/(docs)/docs/pricing/SwitchToHobbyButton.tsx
index 0a0919f6d..8d1aab5f0 100644
--- a/apps/web/src/app/(docs)/docs/pricing/SwitchToHobbyButton.tsx
+++ b/apps/web/src/app/(docs)/docs/pricing/SwitchToHobbyButton.tsx
@@ -25,7 +25,7 @@ function SwitchToHobbyButton({ team }: { team: Team }) {
if (!user) {
return (
- <Link href="/dashboard/sign-up">
+ <Link href="/auth/sign-up">
<Button>Sign Up</Button>
</Link>
)
diff --git a/apps/web/src/app/(docs)/docs/pricing/SwitchToProButton.tsx b/apps/web/src/app/(docs)/docs/pricing/SwitchToProButton.tsx
index 3fe39e08f..34eb35201 100644
--- a/apps/web/src/app/(docs)/docs/pricing/SwitchToProButton.tsx
+++ b/apps/web/src/app/(docs)/docs/pricing/SwitchToProButton.tsx
@@ -51,7 +51,7 @@ function SwitchTierButton({ team }: { team: Team }) {
if (!user) {
return (
- <Link href="/dashboard/sign-up">
+ <Link href="/auth/sign-up">
<Button>Sign Up</Button>
</Link>
)
diff --git a/apps/web/src/components/Auth.tsx b/apps/web/src/components/Auth.tsx
index 14f79d497..f4d9d92a3 100644
--- a/apps/web/src/components/Auth.tsx
+++ b/apps/web/src/components/Auth.tsx
@@ -40,7 +40,7 @@ export const Auth = function () {
<span className="text-sm text-red-500" title={error?.message}>
Something went wrong
</span>
- <Link href={`/dashboard/sign-in?${redirectToCurrentURL()}`}>
+ <Link href={`/auth/sign-in?${redirectToCurrentURL()}`}>
<Button>Sign In</Button>
</Link>
</div>
@@ -73,7 +73,7 @@ export const Auth = function () {
</div>
) : (
<div className="flex items-center justify-center gap-3">
- <Link href={`/dashboard/sign-in?${redirectToCurrentURL()}`}>
+ <Link href={`/auth/sign-in?${redirectToCurrentURL()}`}>
<Button>Sign In</Button>
</Link>
</div>
diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsx
index 8d6f73f88..c920303ef 100644
--- a/apps/web/src/components/AuthForm.tsx
+++ b/apps/web/src/components/AuthForm.tsx
@@ -72,7 +72,7 @@ function AuthForm({ view }: Props) {
{(view === 'sign_up' || view === 'forgotten_password') &&
<div className="flex items-center justify-start gap-2">
<span className="text-zinc-400">Already have an account?</span>
- <Link className="flex items-center justify-center" href="/dashboard/sign-in">
+ <Link className="flex items-center justify-center" href="/auth/sign-in">
<Button
variant="textLink"
>
@@ -83,7 +83,7 @@ function AuthForm({ view }: Props) {
}
{view === 'sign_in' &&
- <Link className="text-center" href="/dashboard/reset-password">
+ <Link className="text-center" href="/auth/reset-password">
<Button
variant="textSubtle"
>
@@ -95,7 +95,7 @@ function AuthForm({ view }: Props) {
{view === 'sign_in' &&
<div className="flex items-center justify-start gap-2">
<span className="text-zinc-400">{'Don\'t have an account?'}</span>
- <Link href="/dashboard/sign-up">
+ <Link href="/auth/sign-up">
<Button
variant="textLink"
>