So, I just read today's blog on Hono https://blog.cloudflare.com/the-story-of-web-framework-hono-fro

So, I just read today's blog on Hono https://blog.cloudflare.com/the-story-of-web-framework-hono-from-the-creator-of-hono My worker uses Hono, yay! As I read the blog, I discovered their is a Hono Client :watwow: All the examples only show setting it up with a single route, which is not terribly efficient for me. I have N routes on my app. Is there a way to create the Hono client with an entire app route structure? The important part of why this would really matter is that, I have a complex app which is structured like:
const api = new Hono<HonoEnv>().basePath("/api");
api.route("/", aiApi);
api.route("/", analyticsApi);
...
const api = new Hono<HonoEnv>().basePath("/api");
api.route("/", aiApi);
api.route("/", analyticsApi);
...
15 Replies
Isaac McFadyen
Isaac McFadyen•2mo ago
Things can change over time - I understand your frustration but CF is not the first (and not the last) company to change pricing when they discover that the initial launch pricing doesn't fit perfectly. See for example: - AWS and static IPs which used to be free and are now charged - GCP increasing cloud storage price in 2023 - Microsoft 365 pricing increasing by 9% on September 1st, 2023
Chaika
Chaika•2mo ago
to be fair it didn't even launch, it was just the blog posts talking about its initial version & ideas and it got pulled before even being released
Isaac McFadyen
Isaac McFadyen•2mo ago
This also ^ And: it's a free service, they didn't reduce it if you were paying, they only removed what was basically a free gift.
Yuzu UI Developer
Yuzu UI Developer•2mo ago
Supabase and appwrite change their pricing too, serverless function have higher difficulty for set a price
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Kourosh Amini
Kourosh Amini•2mo ago
Hello, My name is Kourosh. I am having issues adding some SRV records in the cloudflare DNS. Can someone help me out? I basically need to enter the following record, but I can't seem to find the Service, or protocol option in Cloudlflare. Type Service Protocol Port Weight Priority Name Target TTL SRV _sipfederationtls _tcp 5061 1 100 @ sipfed.online.gov.skypeforbusiness.us One Hour
dave
dave•2mo ago
You shouldn't trust any product that is in alpha or beta in general.
nelsonprsousa
nelsonprsousa•2mo ago
Hi everyone 👋
Seafoodchicken
Seafoodchicken•2mo ago
hello can someone please help me unlocking my domain in cloudflare
Yuzu UI Developer
Yuzu UI Developer•2mo ago
is it possible to run deno runtime in pages or workers? i have a fresh deno app to deploy
Louis Deconinck
Louis Deconinck•2mo ago
I want to fetch data from D1 and use this to generate a static site? How to do this? All info I find uses the Cloudflare Astro adapter, but that is for server side rendered (SRR) sites. How to do it for static sites?
Isaac McFadyen
Isaac McFadyen•2mo ago
Because you're building locally or on Pages, not SSR, you'll need to fetch it using the Cloudflare API for D1. https://developers.cloudflare.com/api/operations/cloudflare-d1-query-database
Leonie2006
Leonie2006•2mo ago
hi
OlAMlO
OlAMlO•2mo ago
Not sure if this is the best channel to post but are these docs correct? https://developers.cloudflare.com/cloudflare-one/policies/gateway/http-policies/#selectors It looks like selectors URL and Content Categories use the same API? but this seems like a mistake not(any(http.request.uri.content_category[*] in {1}))
Cloudflare Docs
HTTP policies | Cloudflare Zero Trust docs
HTTP policies allow you to intercept all HTTP and HTTPS requests and either block, allow, or override specific elements such as websites, IP addresses, and file types. HTTP policies operate on Layer 7 for all TCP (and optionally UDP) traffic sent over ports 80 and 443.
OlAMlO
OlAMlO•2mo ago
I figured it out....it's just http.request.uri
Want results from more Discord servers?
Add your server