UNPKG

generator-nest-js-boilerplate

Version:

This generator will help you to build your own Nest.js Mongodb API using TypeScript 4

28 lines (21 loc) 1.05 kB
require('dotenv').config(); module.exports = { mongodb: { url: process.env.MONGODB_URL, options: { useNewUrlParser: true, // removes a deprecation warning when connecting useUnifiedTopology: true, // removes a deprecating warning when connecting // connectTimeoutMS: 3600000, // increase connection timeout to 1 hour // socketTimeoutMS: 3600000, // increase socket timeout to 1 hour }, }, // The migrations dir, can be an relative or absolute path. Only edit this when really necessary. migrationsDir: 'migrations', // The mongodb collection where the applied changes are stored. Only edit this when really necessary. changelogCollectionName: 'changelog', // The file extension to create migrations and search for in migration dir migrationFileExtension: '.js', // Enable the algorithm to create a checksum of the file contents and use that in the comparison to determin // if the file should be run. Requires that scripts are coded to be run multiple times. useFileHash: false, };