Skip to content

Commit 51cc6ed

Browse files
committed
refactor: update CMS type and local path configuration to use environment variables
- Changed `cmsType` to utilize `process.env.CMS_TYPE` with a fallback to 'cmsType'. - Updated `localPath` to use `process.env.CONTAINER_PATH` with a fallback to 'your-local-legacy-cms-path'.
1 parent 1fc479e commit 51cc6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

upload-api/src/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
plan: {
33
dropdown: { optionLimit: 100 }
44
},
5-
cmsType: 'contentful',
5+
cmsType: process.env.CMS_TYPE || 'cmsType',
66
isLocalPath: true,
77
awsData: {
88
awsRegion: 'us-east-2',
@@ -12,5 +12,5 @@ export default {
1212
bucketName: '',
1313
bucketKey: ''
1414
},
15-
localPath: 'your-local-legacy-cms-path',
15+
localPath: process.env.CONTAINER_PATH || 'your-local-legacy-cms-path',
1616
};

0 commit comments

Comments
 (0)