chore: fix more build issues

BREAKING CHANGE: In `@revanced/discord-bot`, its environment variable
                 `DATABASE_URL` has been renamed to `DATABASE_PATH`
                 and the `file:` prefix is no longer needed
This commit is contained in:
Palm
2024-07-08 17:18:39 +00:00
committed by GitHub
parent 9b6ba56d99
commit 77fefb9bef
12 changed files with 29 additions and 27 deletions

View File

@@ -4,7 +4,7 @@ import { getMissingEnvironmentVariables } from '@revanced/bot-shared'
import './events/register'
// Check if token exists
const missingEnvs = getMissingEnvironmentVariables(['DISCORD_TOKEN', 'DATABASE_URL'])
const missingEnvs = getMissingEnvironmentVariables(['DISCORD_TOKEN', 'DATABASE_PATH'])
if (missingEnvs.length) {
for (const env of missingEnvs) logger.fatal(`${env} is not defined in environment variables`)
process.exit(1)