Environment vars with manifest override arrays

I have an array of urls in the host permission section of my manifest override in my package.json:
"host_permissions": [
"http://localhost/*",
"https://*.mydomain.com/*",
"$PLASMO_PUBLIC_STAGING_ONLY_URL/*"
],
"host_permissions": [
"http://localhost/*",
"https://*.mydomain.com/*",
"$PLASMO_PUBLIC_STAGING_ONLY_URL/*"
],
I would like to remove http://localhost/* and $PLASMO_PUBLIC_STAGING_ONLY_URL/* when I build for production. I don't have the PLASMO_PUBLIC_STAGING_ONLY_URL variable set in my .env.production. When I build my extension, the variable name is hardcoded into my host_permissions array in the resulting manifest.json. Any tips on how to configure this properly would be much appreciated.
2 Replies
Arcane
Arcane•4w ago
@terryball has reached level 1. GG!
terryball
terryball•3w ago
Giving this a bump in case anyone has a solution or recommendation for a workaround.
Want results from more Discord servers?
Add your server