Use environment variables for endpoint URLs

This commit is contained in:
Azures 2025-12-08 21:05:09 +01:00 committed by GitHub
parent 41690f84c7
commit 0e2a23ccbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,8 +61,8 @@ var config = {
top_right: process.env.SPONSOR_TOP_RIGHT
},
endpoints: {
textures_url: "https://textures.minecraft.net/texture/",
session_url: "https://sessionserver.mojang.com/session/minecraft/profile/"
textures_url: process.env.TEXTURES_ENDPOINT || "https://textures.minecraft.net/texture/",
session_url: process.env.SESSION_ENDPOINT || "https://sessionserver.mojang.com/session/minecraft/profile/"
}
};