Skip to content

Conversation

greenscientist
Copy link
Collaborator

No description provided.

@greenscientist greenscientist marked this pull request as draft February 14, 2025 21:30
setProjectConfiguration(configFromFile);
} catch {
console.error(`Error loading server configuration in file ${configFileNormalized}`);
} catch (error: unknown) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment to explain why we have such complex error handling here and not elsewhere.

if (process.env.NODE_ENV === 'production') {
// In production, you might want to use a default configuration
// or terminate the process
process.exit(1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a console log before the process exit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants