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
Thanks for your answer! I will definitely have a try 🙏
7 replies
NNuxt
Created by phipham on 3/4/2025 in #❓・help
End-to-end typesafe for API not working in nuxt 4
Thanks @cuebit , just found the cause, if you imports defineEventHandler from "#imports", it will not be able to retrieve the route types, I have to switch to import from 'h3' instead, not sure if it is best practice.
- import {defineEventHandler} from "#imports"
+ import {defineEventHandler} from "h3"
- import {defineEventHandler} from "#imports"
+ import {defineEventHandler} from "h3"
Actually I am not a fan of auto in vue/nuxt ecosystem, which causes a lot of troubles, there is no import path in any of the examples, save a few keystrokes (with IDE auto-import) in exchange of days of debugging ^^
6 replies
CDCloudflare Developers
Created by Timmy - IT Seo - 4A on 1/7/2025 in #general-help
cache web in CF
Let's visit the docs first, it can help a lot https://developers.cloudflare.com/cache/
3 replies
CDCloudflare Developers
Created by phipham on 9/20/2024 in #general-help
Images migration from R2 to Cloudflare images
Based on current statistic, each image variant is request about 700 times in 72 hours, but new product will take place in first page everyday, so rough estimate should be around ~4000 request in 30-days sliding windows for each image variant.
7 replies
CDCloudflare Developers
Created by phipham on 9/20/2024 in #general-help
Images migration from R2 to Cloudflare images
Wow thanks for the guide, never thought of it.
7 replies
CDCloudflare Developers
Created by phipham on 9/20/2024 in #general-help
Images migration from R2 to Cloudflare images
@Chaika Thanks for your answer, for more details, we currently have about 200k images with 3 different transform variants, counted 600k transforms per 30-days sliding window, images will be available for access for about 5-6 months, so we need to pay ~300$ per month, in the past, I think it only cost about 50-60$, do you have any idea to optimize the cost without pre-transform? I hope cloudflare has transform analytics, so we can have more insight and adjust our current product, the only thing we can see now is amount of the image transformed per day. Thanks!
7 replies