I have an application that uses create-react-app. For production we build a docker image where we use the node docker image to build the static files and then we use the nginx image to host the static files at runtime.
Now I want to support devMode and it’s not ideal to sync the static files to the nginx image. I would prefer to use the build.targetImage to target the node image and then I can use npm start to run the app in dev mode.
Is there some way I can determine that the module is run in devMode in the template?