Skip to content

Commit 4e87673

Browse files
authored
Move cors proxy to glitch (replit continues their rugpull 😔)
See comment in code
1 parent f29f034 commit 4e87673

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3206,7 +3206,8 @@ <h2 style="text-align:center;margin-bottom: 0.5rem;">Your Characters</h2>
32063206
downloadUrl = url;
32073207
} else {
32083208
// code for this CORS proxy server is here: https://replit.com/@joe64/opencharacters-cors-proxy
3209-
downloadUrl = "https://opencharacters-cors-proxy.joe64.repl.co?url=" + encodeURIComponent(url);
3209+
// EDIT: Moved to Glitch since Replit raised prices to an absurd $6/month for a 0.25 vCPU machine in Jan 2024 (no more "Always On" machines - only "Deployments" now).
3210+
downloadUrl = "https://opencharacters-cors-proxy.glitch.me/?url=" + encodeURIComponent(url);
32103211
}
32113212
let text = await fetch(downloadUrl).then(r => r.text());
32123213
let entryTextArr = text.replace(/\r/g, "").split(/\n{2,}/).map(entry => entry.trim()).filter(entry => entry);

0 commit comments

Comments
 (0)