terryball
terryball
Explore posts from servers
PD🧩 Plasmo Developers
Created by terryball on 8/22/2024 in #👟framework
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.
4 replies