summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-05-24 05:57:44 +0200
committerRory& <root@rory.gay>2026-05-24 06:08:00 +0200
commitdd3b398fb214da0bb1348c3dd48dc68ecac2bd38 (patch)
tree44895d840b9a5b6080545b12318af4cbda4978d2 /src/api/Server.ts
parentSide tangent: fix prettier complaints (diff)
downloadserver-ts-dd3b398fb214da0bb1348c3dd48dc68ecac2bd38.tar.xz
Clean up erlpack types
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index a2e63f46..1d9fe2ab 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -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: