api-client/packages/hoppscotch-selfhost-web
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
..
src fix: preserve hierarchy during personal collection imports (#4815) 2025-03-14 13:46:04 +05:30
webapp-server chore: bump version to 2025.2.3 2025-03-19 14:41:08 +05:30
.eslintrc.cjs fix: lint errors removed by using satisfies or as for type (#3934) 2024-03-28 20:28:48 +05:30
.gitignore feat: implement environments for selfhosted (#30) 2023-03-08 16:47:29 +05:30
Caddyfile fix: issues with port binding in different container runtimes (#4279) 2024-08-21 19:07:53 +05:30
Dockerfile fix: reduce the memory consumption during build to prevent OOM (#3148) 2023-07-18 00:08:06 +05:30
gql-codegen.yml chore: remove unwanted logs & use new gql generation for selfhosted-web (#65) 2023-04-04 04:18:29 +05:30
index.html feat: container registry friendly docker images and all-in-one container (#3193) 2023-08-24 00:01:28 +05:30
meta.ts fix: environment variables usage in meta tags (#3418) 2023-10-05 13:51:42 +05:30
package.json fix(common): normalize headers before final relay (#4911) 2025-03-19 15:47:41 +05:30
postcss.config.cjs fix: broken ui due to accidentally moved postcss config 2023-12-19 12:40:07 +05:30
prod_run.mjs fix(infra): deterministic env var ordering (#4893) 2025-03-19 16:08:47 +05:30
selfhost-web.Caddyfile fix: issues with port binding in different container runtimes (#4279) 2024-08-21 19:07:53 +05:30
tailwind.config.ts feat: collection runner (#3600) 2024-11-26 15:56:09 +05:30
tsconfig.json feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
tsconfig.node.json feat: selfhost auth frontend (#15) 2023-02-09 01:12:44 +05:30
vite.config.ts fix: prevent dev server crashes due to breaking changes in the vue-i18n suite of tools 2025-03-18 12:29:18 +05:30