feat: add changelog/roadmap types, Sanity queries, and public route whitelist
This commit is contained in:
@@ -55,3 +55,19 @@ export const postBySlugQuery = `
|
||||
export const postSlugsQuery = `
|
||||
*[_type == "post" && defined(slug.current)] { "slug": slug.current }
|
||||
`
|
||||
|
||||
/** All changelog entries — published, newest first */
|
||||
export const changelogEntriesQuery = `
|
||||
*[_type == "changelogEntry" && publishedAt <= now()]
|
||||
| order(publishedAt desc) {
|
||||
_id, title, version, publishedAt, tags, body
|
||||
}
|
||||
`
|
||||
|
||||
/** Roadmap items — excludes shipped, sorted by manual order */
|
||||
export const roadmapItemsQuery = `
|
||||
*[_type == "roadmapItem" && status != "shipped"]
|
||||
| order(order asc) {
|
||||
_id, title, description, status, order
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user