Get Custom Domains For Pages

Within Astro config file, I need to include the domains of the application to use the Image component for external URLs (R2 Bucket for Assets). Is there any way to include the custom domains of my Pages project within my config?
3 Replies
jjjrmy
jjjrmyOP8mo ago
CF_PAGES_URL only returns the pages.dev url, not the custom domains
Hello, I’m Allie!
I don't think that is exposed. Also because you can add custom domains after the Pages project is built
jjjrmy
jjjrmyOP8mo ago
true
Want results from more Discord servers?
Add your server