dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Inject `VITE_CLOUD_URL` at runtime

Open sunng87 opened this issue 2 years ago • 1 comments

          We need to seek a further solution to inject `VITE_CLOUD_URL` at runtime so we can reuse same image across different environments. Let me create an issue for this.

Originally posted by @sunng87 in https://github.com/GreptimeTeam/dashboard/pull/156#pullrequestreview-1325479339

sunng87 avatar Mar 06 '23 03:03 sunng87

I don't think we could use the same image for dev and staging. Because the variable is determined during build-time. We could edit the action YML and make sure the commit sha for the staging image is (one of) the latest sha for the dev image (already tested). Perhaps add a new file to store the latest sha list. The commit sha for the staging image should only be selected from the sha list, not be text editable.

ZonaHex avatar May 12 '23 03:05 ZonaHex