You are browsing as a guest. Sign up (or log in) to start making projects!

19m 56s logged

Devlog — Sportválasztó (July 2026)
The last two days were all about squashing login and connectivity bugs on sportvalaszto.hu. Here’s what went wrong and how I fixed it.
Bug #1: The site wouldn’t load for some international testers
Turned out appwrite.js had a hardcoded endpoint (cloud.appwrite.io/v1) that didn’t match the region-specific one in .env (fra.cloud.appwrite.io/v1). This mismatch broke the app for some foreign (Hack Club) testers.
Fix:

Swapped the hardcoded value for import.meta.env in appwrite.js
Made sure the hosting provider had the VITE_APPWRITE_* env vars set at build time, not just runtime

Bug #2: Google OAuth redirect_uri_mismatch
Login was failing with a redirect_uri_mismatch error from Google.
Fix:

Registered the full callback URL in Google Cloud Console under Authorized redirect URIs:
https://fra.cloud.appwrite.io/v1/account/sessions/oauth2/callback/google/68fe2fae00030619f0a5
Kept Authorized JavaScript origins domain-only (no path):
https://fra.cloud.appwrite.io

Mixing these two up was the root cause — an easy trap to fall into.

Stack: Appwrite Cloud (Frankfurt region) · Google OAuth 2.0
Both bugs are now resolved and login works reliably for testers regardless of location. Hurrayy!!

1
10

Comments 0

No comments yet. Be the first!