IEatBeans
01/29/2023, 6:03 PMsalutalice
01/29/2023, 6:24 PMJames
01/29/2023, 6:25 PMIEatBeans
01/29/2023, 8:37 PMIEatBeans
01/29/2023, 8:51 PMJames
01/29/2023, 8:51 PMcontext.data
which will survive a request. context.data.auth = {}
for exampleIEatBeans
01/29/2023, 8:52 PMsalutalice
01/29/2023, 8:53 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:19 AMbkyerv
01/30/2023, 3:39 AMid
of the user from the url, use this id to fetch the user data and render it on the page. While I can access the url params via Astro.params
in the frontmatter section I cannot use cloudflare functions
in that section because it is executed on the server env. While I can use cloudflare functions
inside the script tags (i.e. on the client) I cannot pass the url params that I have accessed from the frontmatter section to the script tag section. I was wondering has anyone come across similar situation and if there is any solution that could allow me access url params, use that info to fetch data using cloudlfare functions and render it on the page?Yudai Nakata
01/30/2023, 4:25 AMcontext.params
in Pages Functions what you are after? https://developers.cloudflare.com/pages/platform/functions/routing/#dynamic-routesbkyerv
01/30/2023, 7:38 AMid
of an item that I have access to on the server side to the request for cloudflare functions that must be invoked on the client side.Greg Brimble | Cloudflare Pages
01/30/2023, 12:04 PMfetch
)
- render some HTML with that data
- return as a responsebkyerv
01/30/2023, 12:19 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:21 PMHardAtWork
01/30/2023, 12:23 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:24 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:25 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:25 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:25 PMHardAtWork
01/30/2023, 12:26 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:27 PMHardAtWork
01/30/2023, 12:27 PMHardAtWork
01/30/2023, 12:28 PMGreg Brimble | Cloudflare Pages
01/30/2023, 12:28 PMnodejs_compat
coming soon!Greg Brimble | Cloudflare Pages
01/30/2023, 12:28 PMzsmooth
01/30/2023, 8:49 PMSteve French
01/31/2023, 7:26 PMGreg Brimble | Cloudflare Pages
01/31/2023, 7:36 PMsudokar
02/01/2023, 6:34 PM