File tree Expand file tree Collapse file tree
packages/contentstack-import/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,14 +138,14 @@ const setupConfig = async (importCmdFlags: any): Promise<ImportConfig> => {
138138
139139 if ( existsSync ( spacesDir ) && existsSync ( stackSettingsPath ) ) {
140140 try {
141- const stackSettings = JSON . parse ( readFileSync ( stackSettingsPath ) ) ;
141+ const stackSettings = readFileSync ( stackSettingsPath ) ;
142142 if ( stackSettings ?. am_v2 ) {
143143 config . csAssetsEnabled = true ;
144144 config . csAssetsUrl = configHandler . get ( 'region' ) ?. csAssetsUrl ;
145145
146146 if ( existsSync ( stackJsonPath ) ) {
147147 try {
148- const stackData = JSON . parse ( readFileSync ( stackJsonPath ) ) ;
148+ const stackData = readFileSync ( stackJsonPath ) ;
149149 const apiKey = stackData ?. api_key || stackData ?. stackHeaders ?. api_key ;
150150 if ( apiKey ) {
151151 config . source_stack = apiKey ;
You can’t perform that action at this time.
0 commit comments