fix for server mode

This commit is contained in:
SrGooglo 2025-05-12 02:18:58 +00:00
parent baba6965a5
commit 1e86f7638f
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "comty.js",
"version": "0.65.3",
"version": "0.65.4",
"main": "./dist/index.js",
"description": "Official Comty API for JavaScript",
"homepage": "https://github.com/ragestudio/comty.js",

View File

@ -1,5 +1,7 @@
const envOrigins = {
development: location ? `${location.origin}/api` : "http://localhost:9000",
development: globalThis.isServerMode
? "http://localhost:9000"
: `${location.origin}/api`,
indev: "https://indev.comty.app/api",
production: "https://api.comty.app",
}