#How to get all collection names?
1 messages · Page 1 of 1 (latest)
Hi, since we export collections in the config file, you could grab collection names like this:
import { collections } from 'src/content/config';
const collectionNames = Object.keys(collections);