bacon
bacon
Explore posts from servers
CDCloudflare Developers
Created by bacon on 11/12/2023 in #pages-help
Link Previews?
I have a SPA I’m serving through cloudflare pages and would love if there was a way to make link unfurling work when sharing the link to a page elsewhere. The SPA is an image gallery site so being able to have an image of the gallery itself as the link image would be great (as well as passing through a name to the link - is this possible?
2 replies
CDCloudflare Developers
Created by bacon on 11/6/2023 in #pages-help
Possible to detect if pages is running locally or in production?
As the title says — I'm just running a normal pages project and trying to access some type of environment variable to detect if I'm running locally or am in the current deployment. Ideally I'd like to do this via an envirnment variable, but it's unclear to me if you can access these in pages without needing to be inside a CF function
4 replies
CC#
Created by bacon on 9/26/2023 in #help
❔ Custom Copy Semantics for `record struct`?
Hey all - I'm having a hard time figuring out how to (and if it's even supportedt) to do custom copy semantics for record structs. Changing my record type to a record/record class properly calls the copy ctor, but if it's a record struct, when I use with the copy ctor isn't being called. Would love any help here
11 replies