Skip to content

[MongoDB] add dependencies and global configuration#2

Merged
Hurly77 merged 2 commits intomainfrom
next
Mar 22, 2021
Merged

[MongoDB] add dependencies and global configuration#2
Hurly77 merged 2 commits intomainfrom
next

Conversation

@RTEYL
Copy link
Collaborator

@RTEYL RTEYL commented Mar 22, 2021

  1. will require .env.local to set up Mongo URI and Mongo DB connection
  2. exports the connection to be available in all API routes via named import

import { connectToDatabase } from "../../util/mongodb";

@RTEYL RTEYL added the enhancement New feature or request label Mar 22, 2021
@RTEYL RTEYL requested a review from Hurly77 March 22, 2021 04:29
@RTEYL RTEYL self-assigned this Mar 22, 2021
Copy link
Collaborator

@Hurly77 Hurly77 left a comment

Choose a reason for hiding this comment

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

Tyler added dependencies, for MongoDB. Everything seems to be in order passes checks. All Good.

Copy link
Collaborator

@Hurly77 Hurly77 left a comment

Choose a reason for hiding this comment

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

Everything seems good here to.

@Hurly77 Hurly77 merged commit a2f2b84 into main Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants