remove excess comments

This commit is contained in:
Michael Freno
2025-12-23 10:30:51 -05:00
parent 236555e41e
commit 8ca8e6f712
29 changed files with 1 additions and 242 deletions

3
src/env/client.ts vendored
View File

@@ -70,7 +70,6 @@ export const validateClientEnv = (
};
// Validate and export environment variables directly
// This happens once at module load time on the client
const validateAndExportEnv = (): ClientEnv => {
try {
const validated = validateClientEnv(import.meta.env);
@@ -84,12 +83,10 @@ const validateAndExportEnv = (): ClientEnv => {
export const env = validateAndExportEnv();
// Helper function to check if a variable is missing
export const isMissingEnvVar = (varName: string): boolean => {
return !import.meta.env[varName] || import.meta.env[varName]?.trim() === "";
};
// Helper function to get all missing client environment variables
export const getMissingEnvVars = (): string[] => {
const requiredClientVars = [
"VITE_DOMAIN",

3
src/env/server.ts vendored
View File

@@ -90,7 +90,6 @@ export const validateServerEnv = (
};
// Validate and export environment variables directly
// This happens once at module load time on the server
const validateAndExportEnv = (): ServerEnv => {
try {
const validated = validateServerEnv(process.env);
@@ -104,12 +103,10 @@ const validateAndExportEnv = (): ServerEnv => {
export const env = validateAndExportEnv();
// Helper function to check if a variable is missing
export const isMissingEnvVar = (varName: string): boolean => {
return !process.env[varName] || process.env[varName]?.trim() === "";
};
// Helper function to get all missing server environment variables
export const getMissingEnvVars = (): string[] => {
const requiredServerVars = [
"NODE_ENV",