-
Notifications
You must be signed in to change notification settings - Fork 489
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
Differentiate between webui.ipfs.io and webui from kubo #2078
Comments
i'm realizing now that since we're deploying webui assets as a CID and updating DNSlink, that we can't simply set the env var as we would with a typical deployment. If we were to migrate to fleek for deployment, this could be resolved in the manner described in the issue description, but without that, we may need to do some client side logic to determine which env we're running on |
You can inspect In similar fashion, you can detect when it was loaded via specific CID ( Based on that, you can assign different APP ID and initialize telemetry with it. |
it also looks like doing
Would this be a valid approach? |
Yes, that will work too. Might silently break if we ever change the way Kubo behaves, or we add Note
|
I think we can have an environment variable on the webui deployment with countly APP ID and then an APP ID that would be used if that env var is not set. webui.ipfs.io deployments would be able to override the hardcoded APP ID, and kubo usage would use the hardcoded one. This will allow us to proceed without being blocked on any Kubo changes for making this happen
The text was updated successfully, but these errors were encountered: