HomePhabricator
Diffusion Comm e71cb87cd809

[web] Make worker and wasm urls relative

Description

[web] Make worker and wasm urls relative

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/

Reviewers: inka, kamil, atul

Reviewed By: kamil

Subscribers: ashoat, tomek, wyilio

Differential Revision: https://phab.comm.dev/D9397

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Oct 5 2023, 1:48 AM
Reviewer
kamil
Differential Revision
D9397: [web] Make worker and wasm urls relative
Parents
rCOMMa02da8a6a22b: [keyserver] Update CORS
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMe71cb87cd809: [web] Make worker and wasm urls relative (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Oct 31 2023, 2:54 AM