
1 Article
•Paul Mazeau
Test 1

Test 2
index.js
export const isPreview = (searchParams?: { preview?: string }) => {const preview = searchParams?.preview;return preview === 'true';};export const buildPreviewQuery = (query: string, preview: boolean) => {if (!preview) return '';return `*[_type == "${query}" && _id in path("drafts.**")]`;};
Test 3