Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Commit a3a51f1

Browse files
authored
Merge pull request #11 from initstring/remove-enc-key
fix: Remove unused enc key env var
2 parents 47a2244 + 427efa7 commit a3a51f1

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
env:
2626
# Minimal env so prisma/next tooling and env schema are happy
2727
AUTH_SECRET: dummy_auth_secret_abcdefghijklmnopqrstuvwxyz_123456
28-
ENCRYPTION_KEY: y965hZIGKilU0QsFD9VRoT4OAtgnRQx2F0nzXGQDPuU=
2928
DATABASE_URL: file:./dev.db
3029
NODE_ENV: test
3130
NEXT_TELEMETRY_DISABLED: 1
@@ -34,7 +33,6 @@ jobs:
3433
- name: Tests with coverage
3534
env:
3635
AUTH_SECRET: dummy_auth_secret_abcdefghijklmnopqrstuvwxyz_123456
37-
ENCRYPTION_KEY: y965hZIGKilU0QsFD9VRoT4OAtgnRQx2F0nzXGQDPuU=
3836
DATABASE_URL: file:./dev.db
3937
NODE_ENV: test
4038
NEXT_TELEMETRY_DISABLED: 1
@@ -50,7 +48,6 @@ jobs:
5048
- name: Build
5149
env:
5250
AUTH_SECRET: dummy_auth_secret_abcdefghijklmnopqrstuvwxyz_123456
53-
ENCRYPTION_KEY: y965hZIGKilU0QsFD9VRoT4OAtgnRQx2F0nzXGQDPuU=
5451
DATABASE_URL: file:./dev.db
5552
NODE_ENV: production
5653
NEXT_TELEMETRY_DISABLED: 1

‎src/env.ts‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@ export const env = createEnv({
2929
// Logging: default to debug in dev, info in prod; override with LOG_LEVEL
3030
LOG_LEVEL: z.enum(["fatal", "error", "warn", "info", "debug", "trace", "silent"]).optional(),
3131
AUTH_URL: z.string().url().optional(),
32-
ENCRYPTION_KEY: z
33-
.string()
34-
.refine(
35-
(val) => {
36-
if (val.length === 32) return true;
37-
try {
38-
return Buffer.from(val, "base64").length === 32;
39-
} catch {
40-
return false;
41-
}
42-
},
43-
"ENCRYPTION_KEY must be 32 bytes or a base64-encoded 32-byte value",
44-
),
4532
// Optional: toggle credentials provider (default enabled)
4633
AUTH_CREDENTIALS_ENABLED: z.enum(["true", "false"]).optional(),
4734
// Optional: Google OAuth client credentials (registers provider when present)
@@ -68,7 +55,6 @@ export const env = createEnv({
6855
NODE_ENV: process.env.NODE_ENV,
6956
LOG_LEVEL: process.env.LOG_LEVEL,
7057
AUTH_URL: process.env.AUTH_URL,
71-
ENCRYPTION_KEY: process.env.ENCRYPTION_KEY,
7258
AUTH_CREDENTIALS_ENABLED: process.env.AUTH_CREDENTIALS_ENABLED,
7359
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
7460
GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET,

0 commit comments

Comments
 (0)