Skip to content

Improve language #5

Open
Open
@adammunoz

Description

https://github.com/basaldev/custom-service-template/blob/66fcc938921da49fe0125a2b5d087305d97e2083/index.js#L21

You can use this helper function to get the value of an environment variable or fallback value if it doesn't exist.

const MONGO_DB = utilities.getEnvironmentVariable(
  "MONGO_DB",
  "DEFAULT_MONGO_DB_CONNECTION_STRING"
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions