phipham
phipham
Explore posts from servers
BABetter Auth
Created by phipham on 3/17/2025 in #help
Only allow one active session at a time
Hi all, I am trying to implement a feature after a pay wall that requires user to have only one active session at the same time (if user tries to log in on another device, old device will be logged out) Please help to guide me a way, any idea is appreciated. Thanks!
7 replies
NNuxt
Created by phipham on 3/4/2025 in #❓・help
End-to-end typesafe for API not working in nuxt 4
Hi, I tried to upgrade to nuxt 4 to get a better code structure, but the end-to-end typesafe for API route is not working any more as soon as I move code to the app folder. Before: nuxt3 https://github.com/CodyBontecou/nuxt-e2e-typesafety After: nuxt 4 https://github.com/phi0411141/nuxt-e2e-typesafety API in app/app.vue now has type unknown. Any help is appreciated, thank you a lot!
6 replies
CDCloudflare Developers
Created by phipham on 9/20/2024 in #general-help
Images migration from R2 to Cloudflare images
Hi everyone, I need help for image transform services, I used to use image resizing (legacy) to resize images stored on R2 on-the-fly, which is pretty cheap (1$ per 50.000), but it is deprecated and changed to Cloudflare images transform, which cost 25x more (1$ per 50.000 vs 1$ per 2.000). Base on the docs: https://developers.cloudflare.com/images/pricing/, the optimal way now is migrate the images in R2 to cloudflare images storage & create variants for them (as variant is not count to pricing). I tried Sourcing kit but it's not working, only S3 is supported, Can anyone help me to point out how to do the migration? Thanks in advance!
7 replies