web accessible resources extension_ids: [] is an empty array in production but present in dev

web accessible resources extension_ids: [] is an empty array in production but present in dev $CRX_ID, how to fix?
8 Replies
lab
lab•2y ago
You need to add the CRX_ID to your .env if there's no crxid yet (i,e submit to chrome store), make a temporary bundle and to create a crxid on their store, then use that ID as needed
sumit
sumitOP•2y ago
I've already added the plasmo tool generated consistent id to the .env file, that was still causing the empty array do i need to also add it to a production env or something
lab
lab•2y ago
How are you referencing the ID in your .env? oh I mean in the packagejson
sumit
sumitOP•2y ago
$CRX_ID like it is mentioned in the docs, see above
lab
lab•2y ago
is the CRX_ID declared in the .env or .env.development? I just tested on my end and the prod build has the correct ID
sumit
sumitOP•2y ago
.env solved by using different secret environments: .env.development and .env.production (solution for future users)
lab
lab•2y ago
that's very weird..... on my project I have a single .env file and it works for both xd
sumit
sumitOP•2y ago
lol agreed
Want results from more Discord servers?
Add your server