proxy.hoppscotch.io (#1532)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Liyas Thomas
2021-03-14 08:54:15 +05:30
committed by GitHub
parent c6af38f7dc
commit a724dc1207
23 changed files with 62 additions and 61 deletions

View File

@@ -23,6 +23,15 @@ export default {
if (process.client) {
document.body.classList.add("afterLoad")
}
// Migrate old default proxy URL to the new proxy URL (if not set / overridden)
if (
this.$store.state.postwoman.settings.PROXY_URL &&
this.$store.state.postwoman.settings.PROXY_URL === "https://hoppscotch.apollosoftware.xyz/"
) {
this.$store.state.postwoman.settings.PROXY_URL = "https://proxy.hoppscotch.io/"
}
console.log(
"%cWe ❤︎ open source!",
"background-color:white;padding:8px 16px;border-radius:8px;font-size:32px;color:red;"