Does anyone have experience using SST to build Chrome browser extensions? I'm working on a project that has a Chrome extension and static site that both talk to the same backend. I'm struggling to get my development and production environments setup.
I've added the browser extension to my SST project as a ReactStaticSite. Editing the manifest.json file in the Public folder to match the Chrome Extension requirements works fine. I can get everything to work when I'm developing and using "npx sst start" and the environment variables swap in using the sst-env command in the start script. However, when I try to deploy, the variables don't get substituted like I expect. The code in the build directory of my extension still has {{ REACT_APP_...}} instead of the variables I need (e.g. API endpoint). However, if I pull the deployed code down from S3 the placeholder substitutions are made appropriately.
I'm a noob at all this, so I think I have something wrong with my mental model of how it should work. Any pointers from somebody that has done browser extension development would be much appreciated. Thanks!