Skip to content

[Bug]: Duplicate export default in validateEnv.js crashes server on startup #214

Description

@Git-Shubham14

Description

server/config/validateEnv.js has two export default statements which causes a SyntaxError: Duplicate export of 'default' crash on server startup. The server cannot start at all.

Error

SyntaxError: Duplicate export of 'default'
at compileSourceTextModule (node:internal/modules/esm/utils:346:16)

File

server/config/validateEnv.js

Lines

  • Line 100: export default function validateEnv() {
  • Line 126: export default validateEnv;

Expected Behaviour

Server should start without errors.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions