Kiwi
CDCloudflare Developers
•Created by Kiwi on 4/23/2025 in #workers-help
RPC `Service<mysvc>` type doesn't have RPC method properties
I'm trying to declare my RPC service like so, but never get type safety on the RPC methods.
ACCOUNTS_SERVICE: Service<import("@mymonorepo/services").AccountsService>;
It errors with Property 'myMethod' does not exist on type '{ fetch(input: RequestInfo | URL, init?: RequestInit<CfProperties<unknown>> | undefined): Promise<Response>; connect(address: string | SocketAddress, options?: SocketOptions | undefined): Socket; }'.ts(2339)
Am I doing something wrong?1 replies
CDCloudflare Developers
•Created by Kiwi on 7/27/2024 in #pages-help
404 on /cdn-cgi/image/ when deploying Astro
I am deploying an Astro site which rewrites my image reference to be https://mydomain/cdn-cgi/image/width=512,height=512,format=webp/_astro/myimage.png
This gives a 404 error when accessed. The source image /_astro/myimage.png loads as expected.
Why would /cdn-cgi/image not be returning?
11 replies