Skip to content

Commit

Permalink
Merge pull request #35 from contentstack/CS-20814
Browse files Browse the repository at this point in the history
Readme file update to include the eu host details
  • Loading branch information
shafeeqd959 authored Oct 27, 2021
2 parents 6234ff3 + fe563bb commit f0e7fb0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ Update configuration details at config/index.js
management_token: '' //Stack management_token
data: '' // The data that's to be exported. This is generally the one exported via the contentstack-export utility. ex: '../contentstack-export/contents'. Kindly provide the relative path to the directory
```
For switching to EU region update the hosts at config/default.js
```js
{
host:'https://eu-api.contentstack.com/v3',
...
}
```
## Usage
Once all things are configured, you can run following commands
Expand Down
4 changes: 4 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = {
// not passing `locale` will migrate all the locales present
// locales: ['fr-fr'],
host: 'https://api.contentstack.io/v3',
// use below hosts for eu region
// host:'https://eu-api.contentstack.com/v3',
modules: {
types: [
'locales',
Expand Down Expand Up @@ -47,6 +49,8 @@ module.exports = {
// This is the total no. of asset objects fetched in each 'get assets' call
limit: 100,
host: 'https://api.contentstack.io',
// use below hosts for eu region
// host:'https://eu-api.contentstack.com',
validKeys: [
'uid',
'filename',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contentstack-import",
"version": "1.7.5",
"version": "1.7.6",
"description": "Import data into Contentstack",
"homepage": "https://www.contentstack.com/docs/tools-and-frameworks/content-migration/within-contentstack",
"author": {
Expand Down

0 comments on commit f0e7fb0

Please sign in to comment.