JavaScript worker accessing secrets store for array
I was using simple environment variables for a variable that was split with “\n”.
So I could have it all stored in github via toml I converted to using the secret store.
I teceived an error that
const serviceUrls = (env.SERVICE_URLS || '').split(";").filter(Boolean);
Does not have a split function.
What is the preferred way to store and array of items in the secrets store.
Or to just use the workers.toml. But I don’t want these values displayed pi locally in my github repository.
0 Replies