About injected environment variables in Pages

Hi, Is it possible to get the value of the injected variables $CF_PAGES_URL and put the value in to the environment variables setting itself? (Deploying SvelteKit)
No description
5 Replies
peppermint
peppermint4mo ago
Cloudflare Docs
Build configuration · Cloudflare Pages docs
You may tell Cloudflare Pages how your site needs to be built as well as where its output files will be located.
Cyb3r-Jak3
Cyb3r-Jak34mo ago
Pretty sure it isn’t but you can have your build script export the injected variables to what you need
peppermint
peppermint4mo ago
How to do this, is there any docs explaining the detail on how to do it?
Cyb3r-Jak3
Cyb3r-Jak34mo ago
Probably just add export PUBLIC_APP_URL=$CF_PAGES_URL && <current build step >
peppermint
peppermint4mo ago
Awesome, thanks it works.