Skip to content

Instantly share code, notes, and snippets.

// 1. NODE
interface Node {
type: string;
category: string;
}
// 2. DOCUMENT
interface Document extends Node {
type: 'document';
CONTENTFUL_SPACE_ID=secret12345
CONTENTFUL_ACCESS_TOKEN=secret12345
contentful:
spaces:
- test:
space: ENV_CONTENTFUL_SPACE_ID
access_token: ENV_CONTENTFUL_ACCESS_TOKEN
cda_query:
order: 'sys.createdAt'