NobGit
public anord read

Ledger

Why work hard when you can work easier?

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 86% CSS 10% SQL 3% Shell 1% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/anord/ledger.git
ssh://[email protected]:2222/orgs/anord/ledger.git

Trace

apps/api/src/config/env.ts

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

env.ts on main
Author Date Commit Line Code
Alex Nord 3 months ago 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
1
import "dotenv/config";
Open commit View diff
1 import "dotenv/config";
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
2
import { z } from "zod";
Open commit View diff
2 import { z } from "zod";
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
3
Open commit View diff
3
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
4
const envSchema = z.object({
Open commit View diff
4 const envSchema = z.object({
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
5
  NODE_ENV: z.enum(["development", "test", "production"]).default("development"),
Open commit View diff
5 NODE_ENV: z.enum(["development", "test", "production"]).default("development"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
6
  PORT: z.coerce.number().default(4000),
Open commit View diff
6 PORT: z.coerce.number().default(4000),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
7
  LEDGER_APP_URL: z.string().url().default("http://localhost:5173"),
Open commit View diff
7 LEDGER_APP_URL: z.string().url().default("http://localhost:5173"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
8
  DATABASE_URL: z.string().default("postgresql://ledger:ledger@localhost:5432/ledger"),
Open commit View diff
8 DATABASE_URL: z.string().default("postgresql://ledger:ledger@localhost:5432/ledger"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
9
  REDIS_URL: z.string().default("redis://localhost:6379"),
Open commit View diff
9 REDIS_URL: z.string().default("redis://localhost:6379"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
10
  JWT_SECRET: z.string().min(8).default("change-me"),
Open commit View diff
10 JWT_SECRET: z.string().min(8).default("change-me"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
11
  SESSION_COOKIE_NAME: z.string().default("ledger_session"),
Open commit View diff
11 SESSION_COOKIE_NAME: z.string().default("ledger_session"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
12
  PASSWORD_PEPPER: z.string().min(4).default("change-me"),
Open commit View diff
12 PASSWORD_PEPPER: z.string().min(4).default("change-me"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
13
  STORAGE_PROVIDER: z.enum(["local", "s3"]).default("local"),
Open commit View diff
13 STORAGE_PROVIDER: z.enum(["local", "s3"]).default("local"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
14
  LOCAL_STORAGE_ROOT: z.string().default("storage/uploads"),
Open commit View diff
14 LOCAL_STORAGE_ROOT: z.string().default("storage/uploads"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
15
  SMTP_HOST: z.string().optional(),
Open commit View diff
15 SMTP_HOST: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
16
  SMTP_PORT: z.coerce.number().default(587),
Open commit View diff
16 SMTP_PORT: z.coerce.number().default(587),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
17
  SMTP_USER: z.string().optional(),
Open commit View diff
17 SMTP_USER: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
18
  SMTP_PASSWORD: z.string().optional(),
Open commit View diff
18 SMTP_PASSWORD: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
19
  SMTP_FROM_EMAIL: z.string().email().default("[email protected]"),
Open commit View diff
19 SMTP_FROM_EMAIL: z.string().email().default("[email protected]"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
20
  SMTP_FROM_NAME: z.string().default("Ledger"),
Open commit View diff
20 SMTP_FROM_NAME: z.string().default("Ledger"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
21
  AI_PROVIDER: z.string().default("none"),
Open commit View diff
21 AI_PROVIDER: z.string().default("none"),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
22
  AI_MODEL: z.string().default(""),
Open commit View diff
22 AI_MODEL: z.string().default(""),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
23
  AI_API_KEY: z.string().default(""),
Open commit View diff
23 AI_API_KEY: z.string().default(""),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
24
  OIDC_ISSUER: z.string().optional(),
Open commit View diff
24 OIDC_ISSUER: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
25
  OIDC_CLIENT_ID: z.string().optional(),
Open commit View diff
25 OIDC_CLIENT_ID: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
26
  OIDC_CLIENT_SECRET: z.string().optional(),
Open commit View diff
26 OIDC_CLIENT_SECRET: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
27
  GOOGLE_CLIENT_ID: z.string().optional(),
Open commit View diff
27 GOOGLE_CLIENT_ID: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
28
  GOOGLE_CLIENT_SECRET: z.string().optional(),
Open commit View diff
28 GOOGLE_CLIENT_SECRET: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
29
  DISCORD_CLIENT_ID: z.string().optional(),
Open commit View diff
29 DISCORD_CLIENT_ID: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
30
  DISCORD_CLIENT_SECRET: z.string().optional(),
Open commit View diff
30 DISCORD_CLIENT_SECRET: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
31
  MICROSOFT_CLIENT_ID: z.string().optional(),
Open commit View diff
31 MICROSOFT_CLIENT_ID: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
32
  MICROSOFT_CLIENT_SECRET: z.string().optional(),
Open commit View diff
32 MICROSOFT_CLIENT_SECRET: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
33
  SLACK_CLIENT_ID: z.string().optional(),
Open commit View diff
33 SLACK_CLIENT_ID: z.string().optional(),
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
34
  SLACK_CLIENT_SECRET: z.string().optional()
Open commit View diff
34 SLACK_CLIENT_SECRET: z.string().optional()
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
35
});
Open commit View diff
35 });
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
36
Open commit View diff
36
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
37
export const env = envSchema.parse(process.env);
Open commit View diff
37 export const env = envSchema.parse(process.env);
same change 4527dbd

First commit v2

Full commit hash
4527dbdfcb1470a5c2476e2a5208f7bf48cc9d27
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
38
export const isProduction = env.NODE_ENV === "production";
Open commit View diff
38 export const isProduction = env.NODE_ENV === "production";