chore: add remaining db migration and translation scripts

This commit is contained in:
MichalC
2026-09-18 21:52:43 +02:00
parent ab8a148823
commit c8193cf166
21 changed files with 4099 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { getPayload } from 'payload'
import configPromise from '../src/payload.config'
async function run() {
const payload = await getPayload({ config: configPromise })
const pages = await payload.find({ collection: 'pages', locale: 'pl', limit: 100 })
for (const p of pages.docs) {
if (!p.layout) continue;
const blocks = p.layout.map(b => b.blockType).join(', ')
console.log(`Page: ${p.slug} | Blocks: ${blocks}`)
}
process.exit(0)
}
run().catch(console.error)