Page MenuHomePhabricator

[lib][web] Add identity service config to Webpack build
ClosedPublic

Authored by ashoat on Apr 10 2023, 9:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 27, 6:40 PM
Unknown Object (File)
Aug 20 2024, 7:18 AM
Unknown Object (File)
Aug 19 2024, 9:02 AM
Unknown Object (File)
Aug 18 2024, 10:58 PM
Unknown Object (File)
Aug 18 2024, 10:58 PM
Unknown Object (File)
Aug 18 2024, 10:58 PM
Unknown Object (File)
Jul 29 2024, 1:06 PM
Unknown Object (File)
Jul 29 2024, 1:06 PM
Subscribers

Details

Summary

In order to be able to access the identity service config we configure keyserver with in web, we need to include it in the Webpack build.

I initially tried doing this with two separate webpack.DefinePlugin invocations, but they conflicted:

WARNING in DefinePlugin
Conflicting values for 'process.env'
Test Plan

I tested by running a local identity service and patching my checkout with the following: https://gist.github.com/Ashoat/d3bb12e6f10ddda90bb785ff0476ce9a

Note that the identity service returned an error, but the error was received by the client so I think things are working. Identity service error is tracked in ENG-3631

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable