mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-25 00:39:18 +01:00
🦺 Allow empty values for DOCKER_PORT
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const { z } = require('zod');
|
||||
const { createEnv } = require('@t3-oss/env-nextjs');
|
||||
|
||||
const portSchema = z.string().regex(/\d+/).transform(Number).optional();
|
||||
const portSchema = z.string().regex(/\d*/).transform((value) => value === undefined ? undefined : Number(Number)).optional();
|
||||
const envSchema = z.enum(['development', 'test', 'production']);
|
||||
|
||||
const env = createEnv({
|
||||
|
||||
Reference in New Issue
Block a user