api-client/packages/hoppscotch-sh-admin
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
..
assets fix(sh-admin): resolved issue while rendering images (#4221) 2024-07-29 22:59:02 +05:30
locales fix: resolve typos across packages (#4867) 2025-03-12 13:53:08 +05:30
public fix(sh-admin): resolved issue while rendering images (#4221) 2024-07-29 22:59:02 +05:30
src fix: prevent dev server crashes due to breaking changes in the vue-i18n suite of tools 2025-03-18 12:29:18 +05:30
.dockerignore feat: introducing i18n support to admin dashboard (#3051) 2023-06-16 09:47:00 +05:30
.gitignore feat: introducing self hosted admin dashboard package (#12) 2023-02-28 13:13:27 +05:30
.prettierignore feat: replacing windicss by tailwindcss in hoppscotch-ui (#3076) 2023-11-01 20:55:08 +05:30
.prettierrc.cjs chore: hoppscotch-ui improvements (#3497) 2023-12-06 00:08:44 +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 feat: introduce gql schema sdl generation to the backend (#35) 2023-03-13 18:52:50 +05:30
index.html chore: updated brand assets (#3500) 2023-11-08 15:47:35 +05:30
languages.json chore: i18n 2023-12-16 12:29:44 +05:30
package.json chore: bump version to 2025.2.3 2025-03-19 14:41:08 +05:30
postcss.config.cjs chore: move hoppscotch-ui package out of the monorepo (#3620) 2023-12-16 16:58:10 +05:30
prod_run.mjs fix(infra): deterministic env var ordering (#4893) 2025-03-19 16:08:47 +05:30
README.md chore: minor ui improvements 2023-12-20 18:30:16 +05:30
sh-admin-multiport-setup.Caddyfile fix: issues with port binding in different container runtimes (#4279) 2024-08-21 19:07:53 +05:30
sh-admin-subpath-access.Caddyfile fix: issues with port binding in different container runtimes (#4279) 2024-08-21 19:07:53 +05:30
tailwind.config.ts chore: move hoppscotch-ui package out of the monorepo (#3620) 2023-12-16 16:58:10 +05:30
tsconfig.json refactor: fonts are now bundled with packages (#3227) 2023-08-05 23:42:31 +05:30
tsconfig.node.json feat: introducing self hosted admin dashboard package (#12) 2023-02-28 13:13:27 +05:30
vite.config.ts chore: move hoppscotch-ui package out of the monorepo (#3620) 2023-12-16 16:58:10 +05:30

Hoppscotch Logo

Hoppscotch Self Hosted Admin Dashboard

Support

Chat on Discord Chat on Telegram Discuss on GitHub

Built with

Developing

  1. Update .env.example file found in the root of repository with your own keys and rename it to .env.

Local development environment

  1. Clone this repo with git.
  2. Update .env.example file found in the root of hoppscotch-sh-admin directory with your own keys and rename it to .env.
  3. Install pnpm using npm by running npm install -g pnpm.
  4. Install dependencies by running pnpm install within the hoppscotch-sh-admin directory
  5. It is assumed that the backend is running. Refer the Hoppscotch Backend README to get the backend setup and running.
  6. Start the development server with pnpm run dev.
  7. Open the development site by going to http://localhost:3100 in your browser.