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•16mo 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
sumit•16mo 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•16mo ago
How are you referencing the ID in your .env? oh I mean in the packagejson
sumit
sumit•16mo ago
$CRX_ID like it is mentioned in the docs, see above
lab
lab•16mo 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
sumit•16mo ago
.env solved by using different secret environments: .env.development and .env.production (solution for future users)
lab
lab•16mo ago
that's very weird..... on my project I have a single .env file and it works for both xd
sumit
sumit•16mo ago
lol agreed
Want results from more Discord servers?
Add your server