cfanclub
cfanclub
CDCloudflare Developers
Created by cfanclub on 4/13/2024 in #general-help
How to manage multiple cloudflare account in same system ?
I want to manage multiple accounts based on directory such as client1 will have its config in its own directory and client2 will have its own directory. So is there any way to let wrangler automatically pick up the configuration depending on directory. tldr; I am looking for similar functionality like gitdir includeIf where git automatically picks up email based on configuration
1 replies
CDCloudflare Developers
Created by cfanclub on 10/28/2023 in #pages-help
How to access environment variables in helper functions ?
I am using Remix with Cloudflare Pages. I have a helper function mentioned below. Can you suggest how to access the environment variable outside the loader, action ?
export async function internalAPI(url: string, options: FetchOptions = {}) {

return await baseAPI(process.env.SERVER_BASE_DOMAIN, url, options)
}
export async function internalAPI(url: string, options: FetchOptions = {}) {

return await baseAPI(process.env.SERVER_BASE_DOMAIN, url, options)
}
1 replies