Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logarr/backend",
"version": "0.6.0",
"version": "0.6.1",
"private": true,
"description": "Logarr NestJS backend API",
"scripts": {
Expand Down
9 changes: 8 additions & 1 deletion apps/backend/src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ let validatedEnv: Env | null = null;
export function validateEnv(): Env {
if (validatedEnv) return validatedEnv;

const result = envSchema.safeParse(process.env);
// Convert empty strings to undefined for optional fields
// This allows commented-out env vars to work properly
const sanitizedEnv: Record<string, string | undefined> = {};
for (const [key, value] of Object.entries(process.env)) {
sanitizedEnv[key] = value === '' ? undefined : value;
}

const result = envSchema.safeParse(sanitizedEnv);

if (!result.success) {
console.error('\n❌ Invalid environment configuration:\n');
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "0.6.0",
"version": "0.6.1",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logarr",
"version": "0.6.0",
"version": "0.6.1",
"private": true,
"description": "Unified logging for your media stack",
"scripts": {
Expand Down
Loading