Skip to content

Commit d50b34a

Browse files
committed
fix: replace Link with anchor tags for OAuth buttons, add vercel_project_domain resource
1 parent 12282d8 commit d50b34a

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

frontend/src/app/(landingPage)/sign-in/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function LoginPage() {
8686
</CardHeader>
8787
<CardContent className="flex flex-col gap-4">
8888
<div className="flex flex-col gap-2">
89-
<Link
89+
<a
9090
href={process.env.NEXT_PUBLIC_BACKEND + "/google_login"}
9191
>
9292
<Button variant="outline" className="w-full">
@@ -127,16 +127,16 @@ export default function LoginPage() {
127127
</svg>
128128
Login with Google
129129
</Button>
130-
</Link>
130+
</a>
131131

132-
<Link
132+
<a
133133
href={process.env.NEXT_PUBLIC_BACKEND + "/github_login"}
134134
>
135135
<Button variant="outline" className="w-full">
136136
<Github className="w-5 h-5 mr-2" />
137137
Login with GitHub
138138
</Button>
139-
</Link>
139+
</a>
140140
</div>
141141
<div className="flex items-center flex-col">
142142
<Separator className="flex-grow" />

infra/terraform/vercel.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ resource "vercel_project_environment_variable" "backend_url" {
3434
target = ["production"]
3535
sensitive = false
3636
}
37+
38+
resource "vercel_project_domain" "senzen_custom" {
39+
project_id = vercel_project.senzen.id
40+
domain = var.frontend_domain
41+
}

0 commit comments

Comments
 (0)