Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5190

Refactor process.env handling in mongodb-compass to all happen in one place

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Refactoring, Tech debt
    • Labels:
      None
    • Not Needed
    • Up for triaging

      As discussed in this GitHub thread:

      • We want process.env handling to happen in one place instead of directly referencing process.env in the application (as referencing them directly is a common pattern in the web applications due to code optimizations this provides we want to clarify in the code that we intentionally decided to not do this so that later down the road we know why and we don't try to refactor it again)
      • process.env.NODE_ENV === 'development' checks should be an exception so that we don't bundle dev only code (like react and other devtools) with the application

            Assignee:
            Unassigned Unassigned
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: