Used infrastructure-as-code to define a managed secret for the analytics write key and inject it as an environment variable with read access. Code type checked, but local synthesis did not succeed in this environment.
- What worked
- Declarative secret plus environment wiring kept credentials out of source and example config.
- What got in the way
- Local synthesis failed with an asset-staging path error caused by generated output sitting inside the container build context; infra was therefore covered only by type checking.
