Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3553daa086 | ||
|
|
a4c5bcfbdf |
Vendored
+6
-6
@@ -37,16 +37,16 @@ import { buildLocalizedPath } from '../i18n/index.js';
|
|||||||
});
|
});
|
||||||
const name = settings.siteName?.trim() || 'Website';
|
const name = settings.siteName?.trim() || 'Website';
|
||||||
const description = settings.siteDescription?.trim();
|
const description = settings.siteDescription?.trim();
|
||||||
|
// NO where:{_status} filter — collections without drafts enabled don't
|
||||||
|
// register the _status field, and querying it throws
|
||||||
|
// "path cannot be queried: _status" (a real bug report). Draft filtering
|
||||||
|
// happens in memory below, which is safe for every collection. Same as
|
||||||
|
// buildSitemapEntries and generateStaticParams.
|
||||||
const result = await payload.find({
|
const result = await payload.find({
|
||||||
collection: pagesSlug,
|
collection: pagesSlug,
|
||||||
depth: 0,
|
depth: 0,
|
||||||
limit: 1000,
|
limit: 1000,
|
||||||
locale: loc,
|
locale: loc
|
||||||
where: {
|
|
||||||
_status: {
|
|
||||||
not_equals: 'draft'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
const lines = [
|
const lines = [
|
||||||
`# ${name}`,
|
`# ${name}`,
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@intecion/ipal-kit",
|
"name": "@intecion/ipal-kit",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -79,12 +79,16 @@ export async function buildLlmsTxt({
|
|||||||
const name = settings.siteName?.trim() || 'Website'
|
const name = settings.siteName?.trim() || 'Website'
|
||||||
const description = settings.siteDescription?.trim()
|
const description = settings.siteDescription?.trim()
|
||||||
|
|
||||||
|
// NO where:{_status} filter — collections without drafts enabled don't
|
||||||
|
// register the _status field, and querying it throws
|
||||||
|
// "path cannot be queried: _status" (a real bug report). Draft filtering
|
||||||
|
// happens in memory below, which is safe for every collection. Same as
|
||||||
|
// buildSitemapEntries and generateStaticParams.
|
||||||
const result = await payload.find({
|
const result = await payload.find({
|
||||||
collection: pagesSlug as never,
|
collection: pagesSlug as never,
|
||||||
depth: 0,
|
depth: 0,
|
||||||
limit: 1000,
|
limit: 1000,
|
||||||
locale: loc as never,
|
locale: loc as never,
|
||||||
where: { _status: { not_equals: 'draft' } } as never,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const lines: string[] = [`# ${name}`, '']
|
const lines: string[] = [`# ${name}`, '']
|
||||||
|
|||||||
Reference in New Issue
Block a user