DEV Community

Discussion on: Pusher Project - Why I'll Never Be Devops

Collapse
 
avalander profile image
Avalander

Figure out how to pass in info like the secret key at build time so I can open source again

If you're talking about the frontend and are using webpack, you can use the dotenv package and webpack's DefinePlugin to load the key from a configuration file and define it as a global constant when building your sources. Check out how I did it in my project if it sounds interesting.

Collapse
 
itsasine profile image
ItsASine (Kayla)

I’ll look into it! Right now, the front end is a blank page, so that was the next thing to build out.

And I noticed my archive that AWS is using doesn’t recognize emojis as valid Unicode. Boo.