api-client/packages
Shreyas 86c0bb619d
fix(infra): deterministic env var ordering (#4893)
This change sorts environment variables alphabetically before they're
processed with import-meta-env that injects them into the index.html.
This makes sure consistent hashes across pod restarts when there aren't
any functional changes made to the `.env` file.

The issue was affecting desktop app reconnections after k8s pod restarts.

The cause was non-deterministic env var ordering (a sideeffect of `Map`)
during the import-meta-env injection process. Even when the env vars
themselves didn't change, their order in the injected JSON could change,
ultimately resulting in different file hashes.

This fix ensures that regardless of the order in which env vars are
provided by the runtime, they will be sorted alphabetically before being
written to the build.env file.
2025-03-19 16:08:47 +05:30
..
codemirror-lang-graphql feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
hoppscotch-agent fix(common): normalize headers before final relay (#4911) 2025-03-19 15:47:41 +05:30
hoppscotch-backend chore: bump version to 2025.2.3 2025-03-19 14:41:08 +05:30
hoppscotch-cli fix: resolve typos across packages (#4867) 2025-03-12 13:53:08 +05:30
hoppscotch-common fix(common): normalize headers before final relay (#4911) 2025-03-19 15:47:41 +05:30
hoppscotch-data fix: resolve typos across packages (#4867) 2025-03-12 13:53:08 +05:30
hoppscotch-desktop fix(common): normalize headers before final relay (#4911) 2025-03-19 15:47:41 +05:30
hoppscotch-js-sandbox feat: add support for Digest authorization (#4339) 2024-10-29 12:34:40 +05:30
hoppscotch-kernel fix(kernel): pre-req transformers for backcompat (#4883) 2025-03-17 14:28:49 +05:30
hoppscotch-relay feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
hoppscotch-selfhost-desktop fix: prevent dev server crashes due to breaking changes in the vue-i18n suite of tools 2025-03-18 12:29:18 +05:30
hoppscotch-selfhost-web fix(infra): deterministic env var ordering (#4893) 2025-03-19 16:08:47 +05:30
hoppscotch-sh-admin fix(infra): deterministic env var ordering (#4893) 2025-03-19 16:08:47 +05:30