mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 02:31:18 +01:00
♻️ Disable docker when not configured
This commit is contained in:
@@ -34,6 +34,7 @@ const env = createEnv({
|
||||
NEXT_PUBLIC_DEFAULT_COLOR_SCHEME: z.enum(['light', 'dark']).optional().default('light'),
|
||||
NEXT_PUBLIC_PORT: portSchema,
|
||||
NEXT_PUBLIC_NODE_ENV: envSchema,
|
||||
NEXT_PUBLIC_DOCKER_ENABLED: z.boolean().optional().default(false),
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -50,6 +51,7 @@ const env = createEnv({
|
||||
NEXT_PUBLIC_DEFAULT_COLOR_SCHEME: process.env.DEFAULT_COLOR_SCHEME,
|
||||
NEXT_PUBLIC_PORT: process.env.PORT,
|
||||
NEXT_PUBLIC_NODE_ENV: process.env.NODE_ENV,
|
||||
NEXT_PUBLIC_DOCKER_ENABLED: !!process.env.DOCKER_HOST,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user