contentful-import 10.1.2 → 10.2.1
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.
- package/README.md +2 -2
- package/dist/index.js +322 -183
- package/dist/index.mjs +322 -183
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -235,7 +235,7 @@ contentfulImport({
|
|
|
235
235
|
|
|
236
236
|
### Embargoed Assets
|
|
237
237
|
|
|
238
|
-
If a space is configured to use the [embargoed assets feature](https://www.contentful.com/help/media/embargoed-assets/),
|
|
238
|
+
If a space is configured to use the [embargoed assets feature](https://www.contentful.com/help/media/embargoed-assets/), export with `downloadAssets: true` and import with `uploadAssets: true` and `assetsDirectory` pointing to the directory generated by the export. Embargoed asset URLs cannot be processed directly during import; the importer now fails before making API calls and prints the required options when the local upload options are missing.
|
|
239
239
|
|
|
240
240
|
```javascript
|
|
241
241
|
const contentfulImport = require('contentful-import')
|
|
@@ -245,7 +245,7 @@ const options = {
|
|
|
245
245
|
spaceId: '<space_id>',
|
|
246
246
|
managementToken: '<content_management_api_key>',
|
|
247
247
|
uploadAssets: true,
|
|
248
|
-
assetsDirectory: '/path/to/exported
|
|
248
|
+
assetsDirectory: '/path/to/exported-assets'
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
contentfulImport(options)
|