bacon
Explore posts from serversCDCloudflare 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