Amos
Explore posts from serversCDCloudflare 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
TTCTheo's Typesafe Cult
•Created by Amos on 11/8/2022 in #questions
Prisma and Stripe subscription authorisation
I am working on a side project that has different tiers of subscriptions. I'm using Stripe and have set up everything to sync up
subscription
s, price
s and product
s from Stripe with my database. Now depending on the tier of the subscription users have certain restrictions. For example (completely random), imagine restricting people to X blog posts, Y tweets per day or access to feature Z . Would you guys put this information on the metadata of the Stripe product
like
or create a new table in your database like
The benefit to the metadata is you can directly edit it from Stripe, while the benefit of the table is that you actually know what it contains. Thoughts? How do you guys handle this stuff?4 replies
TTCTheo's Typesafe Cult
•Created by Amos on 10/27/2022 in #questions
Protecting PDF
I want to create a project where people can upload PDFs, but I only want users to be able to see certain pages of a PDF unless they meet certain requirements. I can't do this on the client since people would obviously be able to check their network tab and get the PDF's URL from there 😛 I've been checking other websites that do something similar and it seems they fetch each page of the PDF as HTML instead of the entire file... Any idea how I could do something similar or if there is another way of accomplishing this?
5 replies