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