Skip to content

Commit bcb278a

Browse files
committed
fix
1 parent f2cb1b9 commit bcb278a

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

app/login/page.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@ import { TextInput } from "../components/TextInput"
1212
import { SuccessMessage } from "../components/SuccessMessage"
1313

1414
// Helper function to get the base URL for OAuth redirects
15-
// Uses production URL (devx.network) in production, localhost in development
15+
// Always uses production URL (devx.network)
1616
const getBaseUrl = () => {
17-
if (typeof window === "undefined") {
18-
return siteConfig.url
19-
}
20-
const hostname = window.location.hostname
21-
// Use localhost origin for local development
22-
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("192.168.")) {
23-
return window.location.origin
24-
}
25-
// Use production URL for all other cases
2617
return siteConfig.url
2718
}
2819

supabase/config.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ enabled = true
123123
site_url = "https://devx.network"
124124
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
125125
additional_redirect_urls = [
126-
"https://127.0.0.1:3000",
127-
"http://192.168.1.93:3000",
128-
"https://192.168.1.93:3000",
126+
"https://devx.network/",
129127
"https://devx.network",
130128
"https://devx.network/login"
131129
]

0 commit comments

Comments
 (0)