This task will create a Prismic CMS Content Type with default fields.
This task can be executed by running the following command in your project:
node server.js prismicCreate
After you run the command, the application will ask for the following information (This example shows the creation of the About Page
content type that is repeatable):
Content Type Name (Basic Page): About Page
Is Content Type Repeatable (Y/n): y
Make sure you generate a Content Types API token in Prismic and add this to the config before running this task:
{
"prismic": {
"enabled": true,
"project": "example-project",
"tokens": {
"contentTypesApi": "xxxxxxx.xxxxxxxxxx"
}
}
}
Last modified | Friday, April 29, 2022, 12:57:36 PM UTC |
Last author | roelvoordendag |
Commit ID | b4569da |