How to switch to Content Collections.
.gitignore
file.content-collections
to the .gitignore
file:
basehub
commands with content-collections
.
sitemap.ts
filesitemap.ts
file to scan the content
directory for MDX files:
cms
package, then import the collections in the web
package.
title
field to _title
and the _meta.path
field to _slug
to match the default JTBDOS CMS.apps/web/content/blog
directory. The file name will be used as the slug for the blog post and the frontmatter will be used to generate the blog post page. For example:
legal
collection, which is used to generate the legal policy pages. Also, the image
field is the path relative to the app’s root public
directory.
BASEHUB_TOKEN
from the @repo/env
package.