Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Accessing assets from pages functions - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
9 replies
xeon06
Accessing assets from pages functions
Hey folks
, I
'm building an app on Pages using the CloudFlare Astro adapter
. I
'm trying to access some of my static assets in a function
, but
Astro.locals.runtime.env.ASSETS
Astro.locals.runtime.env.ASSETS
seems to be
undefined
undefined
, both in directory or advanced mode
. Does anyone know if there
's any extra bits of config I need to do or
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Tailing Pages Functions
CD
Cloudflare Developers / pages-help
3y ago
Pages functions access
CD
Cloudflare Developers / pages-help
3y ago
Pages local development with Wrangler - Static assets in /dist and Functions in /functions - How to
CD
Cloudflare Developers / pages-help
2y ago
Querying pages functions logs
CD
Cloudflare Developers / pages-help
12mo ago