diff --git a/nuxt.config.ts b/nuxt.config.ts index c0f2c94..6ae74ce 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -15,6 +15,18 @@ const cac = { }, swr: false, }; + +const stor = { + db: { + driver: "mongodb", + connectionString: + process.env.NODE_ENV == "production" + ? `mongodb://${process.env.DBUSER}:${process.env.DBPASS}@localhost:27017/${process.env.DBNAME}` + : `mongodb://localhost:27017/${process.env.DBNAME}`, + databaseName: process.env.DBNAME, + collectionName: "cache", + }, +}; const ct = () => (u: U) => @@ -135,6 +147,7 @@ export default defineNuxtConfig({ database: { user: process.env.DBUSER, password: process.env.DBPASS, + name: process.env.DBNAME, uri: `mongodb://${process.env.DB}`, }, jwt: process.env.JWT,