migrations.ts 476 B

123456789101112131415
  1. import { settingsStore, applySetting } from "~/newstore/settings"
  2. /*
  3. * This file contains all the migrations we have to perform overtime in various (persisted)
  4. * state/store entries
  5. */
  6. export function performMigrations(): void {
  7. // Migrate old default proxy URL to the new proxy URL (if not set / overridden)
  8. if (
  9. settingsStore.value.PROXY_URL === "https://hoppscotch.apollosoftware.xyz/"
  10. ) {
  11. applySetting("PROXY_URL", "https://proxy.hoppscotch.io/")
  12. }
  13. }