Page MenuHomePhabricator

[lib] Include COMM_ALCHEMY_KEY in web Webpack build as well
ClosedPublic

Authored by ashoat on Dec 30 2022, 8:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 8:12 AM
Unknown Object (File)
Mon, Dec 16, 8:59 PM
Unknown Object (File)
Mon, Dec 16, 8:59 PM
Unknown Object (File)
Mon, Dec 16, 8:59 PM
Unknown Object (File)
Mon, Dec 16, 8:55 PM
Unknown Object (File)
Wed, Dec 4, 9:07 AM
Unknown Object (File)
Wed, Dec 4, 9:06 AM
Unknown Object (File)
Wed, Dec 4, 9:05 AM
Subscribers

Details

Summary

In D6113 we add process.env.COMM_ALCHEMY_KEY to be accessible from landing. But for ENG-1969, we'll need the same key available in the web build. This diff moves the logic to lib/webpack/shared.cjs so all Webpack bundles have access.

Depends on D6113

Test Plan

Tested together with later diffs in the stack

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Very limited experience with webpack, but the changes make sense + look reasonable.

This revision is now accepted and ready to land.Dec 30 2022, 1:56 PM