by tarcio on 9/28/19, 3:49 AM with 0 comments
Especially around using environment variables: one artifact that gets its values from the environment being served on makes sense. For backend.
But for frontend development I quickly realized that doing this nowadays is simply overkill. With most of the projects I've worked on recently we are deploying to S3 with Cloudfront in front of it.
Which makes environment variable substitution part of the deployment life cycle: you generate your assets to the environment they are going to be deployed and that's cool. Any secrets in it (Sentry, Newrelic, Calibre, whatever) gets bundled in.
What are thoughts on that and how do you do your front end bundling?