-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: registry assets fail to load in prod build #121
Comments
Some ideas, but happy to pair on this though! Wonder if we need to read from the build args and insert as env vars in the containerfile:
Do we need to pass in secrets within the deploy action? Another idea entirely is to write a |
Ah, are you suggesting that the the code has regressed and we lost the ability to configure the asset registry info at runtime? In #73 we discussed the requirement to support multiple chains via our published image:
For example, RC runs an instance and they need to be able to configure the correct chain info.
No, we don't: the environment variables are provided to the container at runtime, via configuration management software that isn't visible in this repo. I've confirmed that the
Indeed, all the necessary env vars are available and correct:
So I don't think the problem is that the env vars are absent, I think the problem is that the What do you think, @grod220? Can we support the runtime config setup again? |
Spent some time debugging a disparity between the deployed testnet-facing instance (https://dex-explorer.testnet.plinfra.net) and the local dev env. That investigation resulted in #120, which is good progress, but we're still not quite there: the v2 version now deployed doesn't load asset info correctly.
When running the prod build, I see in the browser network console a 404 when accessing this URL:
https://raw.githubusercontent.com/prax-wallet/registry/main/registry/chains/.json
That's obviously a concatenation error where the env varPENUMBRA_CHAIN_ID=penumbra-testnet-phobos-2
did not get interpolated into the string. It's definitely set, though, and thepnpm dev
environment loads it just fine. Why isn't the chain id loading in the prod build?Previously we were using the bundled version of the assets (#57 (comment)), but I believe recent work on the v2 interface moved that to remote fetching.
The text was updated successfully, but these errors were encountered: