Using environment variable for array

I'd like to do something like this in my .env file:
PLASMO_PUBLIC_DOMAINS=["http://foo.com/*", "http://bar.com/*"]
PLASMO_PUBLIC_DOMAINS=["http://foo.com/*", "http://bar.com/*"]
and then be able to reference it, e.g., in package.json:
"host_permissions": $PLASMO_PUBLIC_DOMAINS,
"host_permissions": $PLASMO_PUBLIC_DOMAINS,
Is there a syntax that works for this?
1 Reply
lab
lab•2y ago
Hmm, I wonder how this can be done could be part of the plasmo.config.ts feature in which the script would be evaled at compile time, and you can do a $PLASMO_PUBLIC_DOMAIN.split(",") or some csv split like that
Want results from more Discord servers?
Add your server