fix: live server log
This commit is contained in:
parent
ee176efae3
commit
f9cca8e2cb
1 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import * as dotenv from "@dotenvx/dotenvx";
|
||||
import { z } from "zod";
|
||||
import { logger } from "@plane/logger";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
|
|
@ -28,7 +27,7 @@ const envSchema = z.object({
|
|||
const validateEnv = () => {
|
||||
const result = envSchema.safeParse(process.env);
|
||||
if (!result.success) {
|
||||
logger.error("❌ Invalid environment variables:", JSON.stringify(result.error.format(), null, 4));
|
||||
console.error("❌ Invalid environment variables:", JSON.stringify(result.error.format(), null, 4));
|
||||
process.exit(1);
|
||||
}
|
||||
return result.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue