Source plugin for pulling pages and and assets into Gatsby from tilda.cc project (API available for Bussiness Plan only).
npm install --save gatsby-source-tilda
// In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: 'gatsby-source-tilda',
options: {
publicKey: process.env.TILDA_PUBLIC_KEY, # tilda API public key
secret: process.env.TILDA_SECRET_KEY, # tilda API secret key
projectId: process.env.TILDA_PROJECT_ID, # tilda project Id to sync
skip: true / false, # skip tilda sync
exclude: [], # pages to exclude e.g. ['faq', 'folder/subfolder/blog-post-url']
},
},
],
}
{
allTildaPage {
nodes {
id
pageId
featureimg
date
projectid
published
alias
initScripts
title
descr
img
css {
from
to
}
js {
from
to
}
images {
from
to
}
html
}
}
}
{
allTildaAsset {
nodes {
from
to
localFile {
publicURL
}
}
}
}