Skip to content

docs: Environment variables case fix #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

Jiralite
Copy link
Contributor

@Jiralite Jiralite commented Apr 8, 2025

discord_token and guild_id are not correct:

const envSchema = z.object({
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
DISCORD_TOKEN: z
.string({
// eslint-disable-next-line camelcase -- Param isn't camelcase
required_error: "DISCORD_TOKEN was not found, either it or the .env file are missing",
})
.trim()
.min(1, "DISCORD_TOKEN was not of the minimum length it is either malformed or incomplete"),
GITHUB_TOKEN: z
.string({
// eslint-disable-next-line camelcase -- Param isn't camelcase
required_error: "GITHUB_TOKEN was not found, either it or the .env file are missing",
})
.trim()
.min(1, "GITHUB_TOKEN was not of the minimum length it is either malformed or incomplete")
.optional(),
GUILD_ID: z
.string({
// eslint-disable-next-line camelcase -- Param isn't camelcase
required_error: "GUILD_ID was not found, either it or the .env file are missing",
})
.trim()
.min(1, "GUILD_ID was not of the minimum length it is either malformed or incomplete"),
});

@Jiralite Jiralite changed the title docs: Environment variables fix docs: Environment variables case fix Apr 8, 2025
@ADKaster ADKaster merged commit 01b59a9 into LadybirdBrowser:master Apr 8, 2025
2 checks passed
@Jiralite Jiralite deleted the docs/fix-example-env branch April 8, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants