Skip to content

Commit e9b388b

Browse files
committed
trim before check
1 parent 4f13738 commit e9b388b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/helpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export function applySettingDefaults<
8080
* @throws {Error}
8181
*/
8282
export function validateSupabaseUrl(supabaseUrl: string): URL {
83-
if (!supabaseUrl) {
83+
const trimmedUrl = supabaseUrl?.trim()
84+
85+
if (!trimmedUrl) {
8486
throw new Error('supabaseUrl is required.')
8587
}
8688

0 commit comments

Comments
 (0)