navels
navels
PD🧩 Plasmo Developers
Created by navels on 6/19/2023 in #🔰newbie
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?
4 replies