datocms-plugin-datocms-plugin-next-preview-redux
Version:
Enable Next.js previews... the right way!
105 lines (104 loc) • 2.77 kB
JSON
{
"name": "datocms-plugin-datocms-plugin-next-preview-redux",
"homepage": "https://github.com/cprecioso/datocms-plugin-datocms-plugin-next-preview-redux",
"version": "0.0.4",
"description": "Enable Next.js previews... the right way!",
"keywords": [
"datocms",
"datocms-plugin",
"sidebar",
"json-field",
"next",
"next.js",
"preview"
],
"files": [
"dist",
"docs"
],
"main": "dist/index.html",
"author": "Carlos Precioso <carlos@precioso.design>",
"license": "ISC",
"scripts": {
"format": "sort-package-json; pretty-quick --staged"
},
"husky": {
"hooks": {
"pre-commit": "yarn run format"
}
},
"dependencies": {
"datocms-plugins-sdk": "^0.1.1",
"mobx": "^6.1.8",
"mobx-react": "^7.1.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@cprecioso/tsconfig": "^1.0.0",
"@types/node": "^14.14.37",
"@types/parcel-bundler": "^1",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"husky": "^6.0.0",
"parcel-bundler": "^1.12.5",
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0",
"sort-package-json": "^1.49.0",
"typescript": "^4.2.3"
},
"datoCmsPlugin": {
"title": "Datocms Plugin Next Preview Redux",
"previewImage": "docs/preview.gif",
"coverImage": "docs/cover.png",
"entryPoint": "dist/index.html",
"pluginType": "sidebar",
"fieldTypes": [
"json"
],
"parameters": {
"global": [
{
"id": "instanceUrl",
"label": "Site instance url",
"type": "string",
"required": true,
"default": false,
"hint": "The url of your Next.js site deployment"
},
{
"id": "previewPath",
"label": "Preview API path",
"type": "string",
"required": true,
"default": "/api/preview",
"hint": "Next.js API path to link to to enable previews"
},
{
"id": "previewSecret",
"label": "Preview secret",
"type": "string",
"required": false,
"default": false,
"hint": "Secret to append to preview link query parameter, leave blank if none is needed"
},
{
"id": "developmentMode",
"label": "Development mode",
"type": "boolean",
"default": false,
"hint": "Shows debug messages in console"
}
],
"instance": [
{
"id": "entityPath",
"label": "Entity path",
"type": "string",
"required": true,
"hint": "Path to the entity on your site. Fill in any dynamic fields with $field_name, e.g. /posts/$slug"
}
]
}
}
}