Page MenuHomePhabricator

[web] Make worker and wasm urls relative
ClosedPublic

Authored by michal on Oct 6 2023, 7:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 1:45 AM
Unknown Object (File)
Wed, Dec 4, 1:08 PM
Unknown Object (File)
Wed, Dec 4, 10:21 AM
Unknown Object (File)
Tue, Dec 3, 8:44 AM
Unknown Object (File)
Mon, Nov 25, 1:03 PM
Unknown Object (File)
Nov 22 2024, 6:11 AM
Unknown Object (File)
Nov 22 2024, 12:52 AM
Unknown Object (File)
Nov 8 2024, 12:28 AM
Subscribers

Details

Summary

Part of ENG-5153

We would like to separate hosting web app on dev environment to localhost:3000/webapp/ and the keyserver logic to localhost:3000/keyserver/. This means that we want to start we need to replace absolute URL (that point to localhost:3000/) with relative ones.

Depends on D9396

Test Plan

Run yarn dev and yarn prod and check that both notif and database workers are downloaded with /comm/workers/ (this will be changed in the later diffs). Also make sure that on yarn prod opaque-ke and olm wasm files are also loaded through /comm/

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 6 2023, 8:07 AM
Harbormaster failed remote builds in B23055: Diff 31744!

I would change the test plan to make sure files are actually downloaded, not read from the cache, otherwise, it looks good

This revision is now accepted and ready to land.Oct 16 2023, 3:17 AM