adminforth 3.0.2-next.1 → 3.0.2-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -316,7 +316,8 @@ async function writeTemplateFiles(dirname, cwd, useNpm, includePrismaMigrations,
|
|
|
316
316
|
const packageManagerTemplateData = getPackageManagerTemplateData(useNpm, nodeMajor);
|
|
317
317
|
const resolvedPrismaDbUrl = includePrismaMigrations ? prismaDbUrl : null;
|
|
318
318
|
const resolvedPrismaDbUrlProd = includePrismaMigrations ? prismaDbUrlProd : null;
|
|
319
|
-
const connectorProvider = provider === 'postgresql' ? 'postgres' :
|
|
319
|
+
const connectorProvider = provider === 'postgresql' ? 'postgres' :
|
|
320
|
+
provider === 'mongodb' ? 'mongo' : provider;
|
|
320
321
|
|
|
321
322
|
// Build a list of files to generate
|
|
322
323
|
const templateTasks = [
|
|
@@ -420,7 +421,7 @@ async function writeTemplateFiles(dirname, cwd, useNpm, includePrismaMigrations,
|
|
|
420
421
|
appName,
|
|
421
422
|
adminforthVersion: adminforthVersion,
|
|
422
423
|
includePrismaMigrations: Boolean(resolvedPrismaDbUrl),
|
|
423
|
-
|
|
424
|
+
connectorProvider: connectorProvider,
|
|
424
425
|
},
|
|
425
426
|
},
|
|
426
427
|
{
|