Tina Docs
Introduction
Core Concepts
Querying Content
Editing
Customizing Tina
Going To Production
Media
Drafts
Guides
Further Reference
Table of Contents

The Schema is located in tina/config.{ts,tsx,js,jsx} and it is used to define the shape of the content.

Definition

Example

const branch =
process.env.NEXT_PUBLIC_TINA_BRANCH ||
process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF ||
process.env.HEAD ||
''
export default defineConfig({
//...
branch,
token: '<Your Read Only Token>', // generated on app.tina.io
clientId: '<Your Client ID>', // generated on app.tina.io
schema: {
collections: [
//..Array of collections
],
},
})

For more information check out the content modeling section

Last Edited: June 15, 2022