diff --git a/api/index.js b/api/index.js index b93b052..986b24c 100644 --- a/api/index.js +++ b/api/index.js @@ -1,3 +1,4 @@ + import express from 'express'; import mongoose from 'mongoose'; import dotenv from 'dotenv'; @@ -11,7 +12,7 @@ import path from 'path'; dotenv.config(); mongoose - .connect(process.env.MONGO) + .connect(process.env.MONGO_URL) .then(() => { console.log('MongoDb is connected'); })