The Schema is located in tina/config.{ts,tsx,js,jsx}
and it is used to define the shape of the content.
Property | Description |
collections | An array of collections. |
config | The configuration for tinaCMS |
config.branch | The branch that will be used to query content on TinaCloud. (Not used in local mode ) |
config.clientId | The ClientId generated on TinaCloud |
config.token | A read only token generated on TinaCloud |
config.media | Media configuration for external and git backed media |
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.ioclientId: '<Your Client ID>', // generated on app.tina.ioschema: {collections: [//..Array of collections],},})
For more information check out the content modeling section
Last Edited: June 15, 2022
Product
Resources
© TinaCMS 2019–2024