You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of #1511 , I've developed an nginx docker setup which is able to load the artifacts from a CircleCI build and serve them in a local path. The idea is that by and upon acessing e.g. http://localhost:8888/pull/1745/ , one can see the latest build for the #1745. But this needs the webApp to work with relative URLs (in this case, /pull/1745/) for assets and routes/redirects.
We need to have a relative publicPath in vue.config.js, like publicPath: './'. This way, the assets for the dApp is downloaded from the path relative to the one from which the index.html file was loaded (ie. js/... instead of /js/...). This should also do it for /staging/. Last bit is fixing redirection to root /, which keeps happening when accessing the index file directly on the relative path.
Acceptance criteria
dApp's assets are fetched relative to the path index.html was loaded
Routes and redirections honor relative path of index file
Tasks
[ ]
The text was updated successfully, but these errors were encountered:
Should we do that? It would mean, that I would need to create new channels and deposit to the UDC for every manual test run as the Raiden Account changes with every new URL.
Another option would be to remove the URL from the Raiden Account signature generation process ;)
No, this is precisely to avoid you having a Raiden Account for each PR's deployment. The Raiden Account is unique per blockchain and per hostname, so with the service I wrote, only the path changes, the domain is always the same (https://localhost:8888/ here on my local machine), and therefore the same Raiden Account is generated. But we need to have different files served for each path (one for each PR) and for the SPA to work fine on these subpaths (usually it expects to be runing in the root of the host).
Description
As part of #1511 , I've developed an nginx docker setup which is able to load the artifacts from a CircleCI build and serve them in a local path. The idea is that by and upon acessing e.g. http://localhost:8888/pull/1745/ , one can see the latest build for the #1745. But this needs the webApp to work with relative URLs (in this case,
/pull/1745/
) for assets and routes/redirects.We need to have a relative
publicPath
invue.config.js
, likepublicPath: './'
. This way, the assets for the dApp is downloaded from the path relative to the one from which theindex.html
file was loaded (ie.js/...
instead of/js/...
). This should also do it for/staging/
. Last bit is fixing redirection to root/
, which keeps happening when accessing the index file directly on the relative path.Acceptance criteria
Tasks
The text was updated successfully, but these errors were encountered: