From 153e6807ca8f63c8a282a94f69a30d9dfef08638 Mon Sep 17 00:00:00 2001 From: hwangsihu <129564966+hwangsihu@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:08:37 +0900 Subject: [PATCH] Update config --- .env.example | 2 +- src/env.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index be534fb47..a0e2dd8dc 100644 --- a/.env.example +++ b/.env.example @@ -15,4 +15,4 @@ DATABASE_URL="" # Your database url (If you want to use sqlite, then you can lea AUTO_NODE=="false" # true for auto node. It is given from lavainfo-api (https://lavainfo-api.deno.dev). SEARCH_ENGINE="YouTubeMusic" # Search engine to be used when playing the song. You can use: YouTube, YouTubeMusic, SoundCloud, Spotify, Apple, Deezer, Yandex and JioSaavn GENIUS_API="" # Sign up and get your own api at (https://genius.com/) to fetch your lyrics (CLIENT TOKEN) -NODES=[{"id":"Local Node","host":"localhost","port":2333,"authorization":"youshallnotpass","retryAmount":5,"retryDelay":60000,"secure":"false"}] +NODES=[{"id":"Local Node","host":"localhost","port":2333,"authorization":"youshallnotpass","secure":false,"retryAmount":5,"retryDelay":60000}] diff --git a/src/env.ts b/src/env.ts index 6b8218d26..754ca6be3 100644 --- a/src/env.ts +++ b/src/env.ts @@ -11,7 +11,7 @@ const LavalinkNodeSchema = z.object({ host: z.string(), port: z.number(), authorization: z.string(), - secure: z.preprocess(val => (val === 'true' || val === 'false' ? val === 'true' : val), z.boolean().optional()), + secure: z.boolean().optional(), sessionId: z.string().optional(), regions: z.string().array().optional(), retryAmount: z.number().optional(),