-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a87a93c
commit 9fcade0
Showing
13 changed files
with
130 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,22 @@ export const env = createEnv({ | |
* Will throw if you access these variables on the client. | ||
*/ | ||
server: { | ||
DATABASE_URL: z.string().url(), | ||
DATABASE_URL: z | ||
.string() | ||
.url() | ||
.default("postgresql://postgres:admin@localhost:5432/db"), | ||
Check failure Code scanning / SonarCloud PostgreSQL database passwords should not be disclosed High
Make sure this PostgreSQL database password gets changed and removed from the code. See more on SonarQube Cloud
|
||
NODE_ENV: z.enum(["development", "test", "production"]), | ||
NEXTAUTH_SECRET: | ||
process.env.NODE_ENV === "production" | ||
? z.string().min(1) | ||
: z.string().min(1).optional(), | ||
NEXTAUTH_URL: z.preprocess( | ||
// Uses VERCEL_URL if NEXTAUTH_URL is not set, e.g. on Vercel's preview deployments | ||
(str) => str || `https://${process.env.VERCEL_URL}`, | ||
z.string().url(), | ||
), | ||
NEXTAUTH_URL: z | ||
.preprocess( | ||
// Uses VERCEL_URL if NEXTAUTH_URL is not set, e.g. on Vercel's preview deployments | ||
(str) => str || `https://${process.env.VERCEL_URL}`, | ||
z.string().url(), | ||
) | ||
.default("http://localhost:3000"), | ||
DISCORD_CLIENT_ID: z.string(), | ||
DISCORD_CLIENT_SECRET: z.string(), | ||
DISCORD_GUILD_ID: z.string(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters