diff --git a/.gitignore b/.gitignore index a9199ba..a11e956 100644 --- a/.gitignore +++ b/.gitignore @@ -61,4 +61,5 @@ typings/ .next # deta-space internal files -.space \ No newline at end of file +.space +Spacefile \ No newline at end of file diff --git a/app.js b/app.js index a283018..59c4775 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,7 @@ require("dotenv").config(); const app = express(); // get db -const mongoDB = `mongodb+srv://${process.env.USER}:${process.env.PASS}@odin.eftl02o.mongodb.net/?retryWrites=true&w=majority`; +const mongoDB = `mongodb+srv://${process.env.USER}:${process.env.PASS}@odin.eftl02o.mongodb.net/inventoryapp?retryWrites=true&w=majority`; // or throw error main().catch((err) => console.log(err)); async function main() {