Skip to content

Commit b7124c3

Browse files
authored
Merge pull request #36 from contentstack/staging
Merge staging to master
2 parents 56ca522 + 4fa246f commit b7124c3

File tree

4 files changed

+669
-169
lines changed

4 files changed

+669
-169
lines changed

config/development.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const config = {
22
// By default, we'd be using contentstack-content-store-filesystem, the following keys can be configured for it.
33
contentStore: {
44
baseDir: './_development_contents',
5+
//Flag to preserve asset uid in the referenced entries, When a new asset version is published.(preserveAssetInReferencedEntries: true)
6+
preserveAssetInReferencedEntries: false
57
},
68
assetStore: {
79
baseDir: './_development_contents',

config/production.js

Lines changed: 60 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,64 @@
11
const config = {
2-
// // The following keys, can be edited in contentstack-content-store-mongodb.
3-
// contentStore: {
4-
// // Name of the mongodb database to store in
5-
// dbName: 'contentstack-db', // Required
6-
// // Collection name in which contents will be stored
7-
// collection: {
8-
// asset: 'prod_contents',
9-
// entry: 'prod_contents',
10-
// schema: 'prod_content_types'
11-
// },
12-
// // keys that form part of sys_keys, pass { key: true } to add, { key: false } to remove
13-
// // currently, only top level keys from SYNC API response item are supported
14-
// indexedKeys: {
15-
// _content_type_uid: true,
16-
// locale: true,
17-
// uid: true,
18-
// },
19-
// // Refer http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html for more configuration options
20-
// options: {
21-
// autoReconnect: true,
22-
// connectTimeoutMS: 15000,
23-
// keepAlive: true,
24-
// noDelay: true,
25-
// reconnectInterval: 1000,
26-
// reconnectTries: 20,
27-
// userNewUrlParser: true,
28-
// },
29-
// // Keys to be deleted, while data is being inserted
30-
// unwantedKeys: {
31-
// asset: {
32-
// action: true,
33-
// checkpoint: true,
34-
// 'data.created_by': true,
35-
// event_at: true,
36-
// type: true,
37-
// 'data.updated_by': true
38-
// },
39-
// contentType: {
40-
// 'data.created_by': true,
41-
// 'data.updated_by': true,
42-
// 'data.DEFAULT_ACL': true,
43-
// 'data.SYS_ACL': true,
44-
// 'data.abilities': true,
45-
// 'data.last_activity': true
46-
// },
47-
// entry: {
48-
// action: true,
49-
// checkpoint: true,
50-
// 'data.created_by': true,
51-
// event_at: true,
52-
// type: true,
53-
// 'data.updated_by': true
54-
// },
55-
// },
56-
// // mongodb connection url
57-
// url: 'mongodb://localhost:27017',
58-
// }
2+
// // The following keys, can be edited in contentstack-content-store-mongodb.
3+
// contentStore: {
4+
// // Name of the mongodb database to store in
5+
// dbName: 'contentstack-db', // Required
6+
// // Collection name in which contents will be stored
7+
// collection: {
8+
// asset: 'prod_contents',
9+
// entry: 'prod_contents',
10+
// schema: 'prod_content_types'
11+
// },
12+
// // keys that form part of sys_keys, pass { key: true } to add, { key: false } to remove
13+
// // currently, only top level keys from SYNC API response item are supported
14+
// indexedKeys: {
15+
// _content_type_uid: true,
16+
// locale: true,
17+
// uid: true,
18+
// },
19+
// // Refer http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html for more configuration options
20+
// options: {
21+
// autoReconnect: true,
22+
// connectTimeoutMS: 15000,
23+
// keepAlive: true,
24+
// noDelay: true,
25+
// reconnectInterval: 1000,
26+
// reconnectTries: 20,
27+
// userNewUrlParser: true,
28+
// },
29+
// // Keys to be deleted, while data is being inserted
30+
// unwantedKeys: {
31+
// asset: {
32+
// action: true,
33+
// checkpoint: true,
34+
// 'data.created_by': true,
35+
// event_at: true,
36+
// type: true,
37+
// 'data.updated_by': true
38+
// },
39+
// contentType: {
40+
// 'data.created_by': true,
41+
// 'data.updated_by': true,
42+
// 'data.DEFAULT_ACL': true,
43+
// 'data.SYS_ACL': true,
44+
// 'data.abilities': true,
45+
// 'data.last_activity': true
46+
// },
47+
// entry: {
48+
// action: true,
49+
// checkpoint: true,
50+
// 'data.created_by': true,
51+
// event_at: true,
52+
// type: true,
53+
// 'data.updated_by': true
54+
// },
55+
// },
56+
// // mongodb connection url
57+
// url: 'mongodb://localhost:27017',
58+
59+
// // Flag to preserve asset uid in the referenced entries, When a new asset version is published.(preserveAssetInReferencedEntries: true)
60+
// preserveAssetInReferencedEntries: false
61+
// }
5962
}
6063

6164
module.exports = config

0 commit comments

Comments
 (0)