Clean up erlpack types

This commit is contained in:
Rory&
2026-05-24 05:57:44 +02:00
parent 04bc09c896
commit dd3b398fb2
6 changed files with 3 additions and 48 deletions
+1 -9
View File
@@ -157,14 +157,6 @@ export class SpacebarServer extends Server {
// new well-known location
app.get("/.well-known/spacebar/client", (req, res) => {
let erlpackSupported = false;
try {
require("@yukikaze-bot/erlpack");
erlpackSupported = true;
} catch (e) {
// empty
}
res.json({
api: {
baseUrl: Config.get().api.endpointPublic?.split("/api/")[0],
@@ -178,7 +170,7 @@ export class SpacebarServer extends Server {
},
gateway: {
baseUrl: Config.get().gateway.endpointPublic,
encoding: [...(erlpackSupported ? ["etf"] : []), "json"],
encoding: ["etf", "json"],
compression: ["zstd-stream", "zlib-stream", null],
},
admin: