create-payload-app 0.3.26 → 0.3.27
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.
|
@@ -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; },
|
|
@@ -4,7 +4,7 @@ import path from 'path';
|
|
|
4
4
|
import Users from './collections/Users';
|
|
5
5
|
|
|
6
6
|
export default buildConfig({
|
|
7
|
-
serverURL: 'http://
|
|
7
|
+
serverURL: 'http://127.0.0.1:3000',
|
|
8
8
|
admin: {
|
|
9
9
|
user: Users.slug,
|
|
10
10
|
},
|
|
@@ -19,4 +19,4 @@ export default buildConfig({
|
|
|
19
19
|
graphQL: {
|
|
20
20
|
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
|
|
21
21
|
},
|
|
22
|
-
})
|
|
22
|
+
})
|
|
@@ -7,21 +7,15 @@ import Users from './collections/Users';
|
|
|
7
7
|
import Media from './collections/Media';
|
|
8
8
|
|
|
9
9
|
export default buildConfig({
|
|
10
|
-
serverURL: 'http://
|
|
10
|
+
serverURL: 'http://127.0.0.1:3000',
|
|
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
|
+
})
|
|
@@ -4,18 +4,15 @@ import TodoLists from './collections/TodoLists';
|
|
|
4
4
|
import Users from './collections/Users';
|
|
5
5
|
|
|
6
6
|
export default buildConfig({
|
|
7
|
-
serverURL: 'http://
|
|
7
|
+
serverURL: 'http://127.0.0.1:3000',
|
|
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
|
+
})
|