DPDK Architecture  ->  Bootstrap (v3.0.5)

Prismic
>= v2.12.0

Prismic is a Content Management System, a tool for editing online content

Also known as a headless CMS, an API CMS, a content platform, a content-as-a-service digital experience... basically Prismic built a tool that lets you choose your technology, framework, and language and then easily manage your content.

Config
>= v2.12.6

Below is the default application config for the prismic module:

{
  "prismic": {
    "enabled": false,
    "project": "",
    "endpoints": {
      "api": "cdn.prismic.io",
      "web": "prismic.io"
    },
    "version": 2,
    "routes": [],
    "tokens": {
      "contentApi": "",
      "contentTypesApi": ""
    },
    "locales": []
  }
}

Manual Usage
>= v2.12.13

The prismic client is available for manual usage:

const NextBootstrap = require('@dpdk/bootstrap');
const bootstrap = new NextBootstrap(__dirname, process.cwd(), nextConfig);

bootstrap.init();

bootstrap.prismic.getSingle("menu", {}).then((data) => {
    console.log('data', data);
});
Last modifiedMonday, August 2, 2021, 1:14:31 PM UTC
Last authorGlenn de Haan
Commit ID9b8382d