Skip to content

Commit 27cab44

Browse files
authored
Merge branch 'main' into claude/weekly-leaderboard-view-xt66i
2 parents 62cc348 + c626b66 commit 27cab44

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/web/proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NextResponse } from "next/server";
22

33
// Better Auth handles authentication via cookies
4-
// No middleware protection needed - routes are protected at the page/API level
5-
export default function proxy() {
4+
// No proxy protection needed - routes are protected at the page/API level
5+
export function proxy() {
66
return NextResponse.next();
77
}
88

packages/backend/auth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export const createAuth = (ctx: GenericCtx<DataModel>) => {
3131
"http://localhost:3000",
3232
"http://localhost:3001",
3333
process.env.SITE_URL || "",
34+
// Also trust www variant of the site URL
35+
...(process.env.SITE_URL
36+
? [process.env.SITE_URL.replace("://", "://www.")]
37+
: []),
3438
].filter(Boolean),
3539
emailAndPassword: {
3640
enabled: true,

0 commit comments

Comments
 (0)