nodexninjaOriginal post
Web Developer
I followed the https://appwrite.io/docs/tutorials/sveltekit and deployed my app to cloudflare. Everything works fine in my dev env but not cf pages. I always get 500 internal server error when I first navigate to /join via typing in the URL. This error doesn't occur when I refresh the page or use links to navigate between pages. My repo is here. I also see a 401 message in the console, so I'm assuming this is somehow triggered by the account.get method. Still, I would normally expect a tutorial to not lead to errors like this. This issue seems to occur whenever I import user from $lib/user.ts.
Summary
Developers following an online tutorial for a SvelteKit app encountered a 500 internal server error on Cloudflare when navigating to a specific page, suspecting the issue may be related to importing `user` from `$lib/user.ts`. A 401 message is also observed in the console. Refreshing the page or using links to navigate works fine. Check the tutorial instructions and review how `account.get` is being used to resolve the issue.