create-payload-app 0.3.26 → 0.3.28
Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ function getDatabaseConnection(args, projectName) {
|
|
54
54
|
type: 'text',
|
55
55
|
name: 'value',
|
56
56
|
message: 'Enter MongoDB connection',
|
57
|
-
initial: "mongodb://
|
57
|
+
initial: "mongodb://127.0.0.1/".concat(projectName === '.'
|
58
58
|
? "payload-".concat(getRandomDigitSuffix())
|
59
59
|
: (0, slugify_1.default)(projectName)),
|
60
60
|
validate: function (value) { return !!value.length; },
|
@@ -11,17 +11,11 @@ export default buildConfig({
|
|
11
11
|
admin: {
|
12
12
|
user: Users.slug,
|
13
13
|
},
|
14
|
-
collections: [
|
15
|
-
Categories,
|
16
|
-
Posts,
|
17
|
-
Tags,
|
18
|
-
Users,
|
19
|
-
Media,
|
20
|
-
],
|
14
|
+
collections: [Categories, Posts, Tags, Users, Media],
|
21
15
|
typescript: {
|
22
|
-
outputFile: path.resolve(__dirname, 'payload-types.ts')
|
16
|
+
outputFile: path.resolve(__dirname, 'payload-types.ts'),
|
23
17
|
},
|
24
18
|
graphQL: {
|
25
19
|
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
|
26
20
|
},
|
27
|
-
})
|
21
|
+
})
|
@@ -8,14 +8,11 @@ export default buildConfig({
|
|
8
8
|
admin: {
|
9
9
|
user: Users.slug,
|
10
10
|
},
|
11
|
-
collections: [
|
12
|
-
TodoLists,
|
13
|
-
Users,
|
14
|
-
],
|
11
|
+
collections: [TodoLists, Users],
|
15
12
|
typescript: {
|
16
|
-
outputFile: path.resolve(__dirname, 'payload-types.ts')
|
13
|
+
outputFile: path.resolve(__dirname, 'payload-types.ts'),
|
17
14
|
},
|
18
15
|
graphQL: {
|
19
16
|
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
|
20
17
|
},
|
21
|
-
})
|
18
|
+
})
|