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)5 Replies
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.
Pretty sure it isn’t but you can have your build script export the injected variables to what you need
How to do this, is there any docs explaining the detail on how to do it?
Probably just add
export PUBLIC_APP_URL=$CF_PAGES_URL && <current build step >
Awesome, thanks it works.