Amos
Explore posts from serversZZerops
•Created by Amos on 4/1/2025 in #💪・community-support
Postgres vector extension
From what I can tell it's already installed, but it errors when I run a migration with the vector type
Also trying to enable it manually with
results in
17 replies
BABetter Auth
•Created by Amos on 2/27/2025 in #help
After hook for social logins, newSession is null?
When I sign up with my social accounts,
ctx.context.newSession
is always null
in the after hook. Is this intended? If so, how can I handle https://www.better-auth.com/docs/concepts/hooks#example-send-a-notification-to-your-channel-when-a-new-user-is-registered but for social? It works fine for e.g. email otp9 replies
BABetter Auth
•Created by Amos on 2/18/2025 in #help
Accepting organization invitation flow
Do you guys have any recommendations for using
better-auth
's organization invitation with users who haven't got an account / aren't signed in? I check on the frontend's page for accepting the invitation if there isn't a session, and if there isn't, I redirect them to the sign in page with the email already set and the input disabled
Then once they log in (e.g. with OTP), then I use the hook to check if the user is new, and if so, it accepts the invite automatically if there is one, and if they already had an account and are logging in, I want to redirect them to the invitation page again
Problem is, my backend and frontend are on separate domains so I'm getting CORS errors if I do the redirect9 replies
CDCloudflare Developers
•Created by Amos on 12/5/2024 in #workers-help
Astro caching with output = server
I added
to one of my pages deployed with
@astrojs/cloudflare
and I do see the response header in my network tab, but it's seemingly not caching anything. I am displaying the current time and it changes every time I refresh the page. Shouldn't it cache the HTML for 60 seconds? Output is set to server
and the page is just this
3 replies
CDCloudflare Developers
•Created by Amos on 12/4/2024 in #workers-help
Rewriting subdomain.example.com to example.com/subdomain
I am deploying an Astro site with middleware and want to rewrite test.example.com to example.com/test, however it returns a 522 error.
I'm guessing it's getting stuck in a loop or something? Not sure how to handle this properly
6 replies
CDCloudflare Developers
•Created by Amos on 11/3/2024 in #workers-help
React + Vite SPA
I have a simple React SPA with Vite. Wondering if I should use Pages or it's recommended to use workers for this as well? Couldn't find any examples in your docs (only for Remix, Next.js etc. not just a plain React SPA)
2 replies
CDCloudflare Developers
•Created by Amos on 10/15/2024 in #general-help
403 when updating env variables
I'm trying to add env variables to a workers project through the dashboard and getting a 403 error
2 replies
CDCloudflare Developers
•Created by Amos on 10/14/2024 in #workers-help
Astro Image component
I'm using the new experimental stuff and using Astro's
Image
component, but when I deploy the images don't work because it's a url like
which is giving error code: 1042
5 replies
CDCloudflare Developers
•Created by Amos on 6/13/2024 in #general-help
Image transformations: 404 error

10 replies
CDCloudflare Developers
•Created by Amos on 3/13/2024 in #general-help
Bandwidth when transforming via URL
Deciding whether or not we should use Cloudflare for image transformations or host something like imgproxy ourselves. We already have the images on AWS, but it's not clear to me if there is no bandwidth used after the first time we load an S3 image proxied through Cloudflare. Both from S3 and Cloudflare
2 replies
DTDrizzle Team
•Created by Amos on 3/5/2024 in #help
Using ATTACH with Drizzle
I want to use ATTACH with Drizzle so I can join between 2 dbs, is this currently possible? Something like this:
1 replies
TTCTheo's Typesafe Cult
•Created by Amos on 11/24/2022 in #questions
Sentry with Next.js in an Nx monorepo?
Anyone got this up and running? Can't seem to figure it out
12 replies