Skip to content

Commit

Permalink
fix env error message (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
kandros authored Apr 5, 2024
1 parent 1da530e commit d1ffa01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/env.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const requiredInProduction: z.RefinementEffect<
if (process.env.NODE_ENV === "production" && !value) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: "Missing required environment variable" + ctx.path.join("."),
message: "Missing required environment variable " + ctx.path.join("."),
});
}
};
Expand All @@ -17,7 +17,7 @@ const requiredInDevelopment: z.RefinementEffect<
if (process.env.NODE_ENV === "development" && !value) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: "Missing required environment variable" + ctx.path.join("."),
message: "Missing required environment variable " + ctx.path.join("."),
});
}
};
Expand Down

0 comments on commit d1ffa01

Please sign in to comment.