diff --git a/config/mongoose.mjs b/config/mongoose.mjs index 33aa69a..eed6977 100644 --- a/config/mongoose.mjs +++ b/config/mongoose.mjs @@ -1,4 +1,4 @@ -import * as mongoose from 'mongoose'; +import mongoose from 'mongoose'; const { MONGODB_ATLAS_USERNAME, MONGODB_ATLAS_PASSWORD, NODE_ENV } = process.env; const database = NODE_ENV === 'production' ? 'notipadDB' : 'notipadDB_development'; diff --git a/package.json b/package.json index 3f316d7..c8f534e 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "lilith-notipad", "version": "0.1.0", "private": true, + "type": "module", "scripts": { "dev": "next dev", "build": "next build",