chore: add remaining db migration and translation scripts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { getPayload } from 'payload'
|
||||
import configPromise from '../src/payload.config'
|
||||
|
||||
async function run() {
|
||||
const payload = await getPayload({ config: configPromise })
|
||||
const homePl = await payload.find({ collection: 'pages', where: { slug: { equals: 'home' } }, locale: 'pl' })
|
||||
const homeEn = await payload.find({ collection: 'pages', where: { slug: { equals: 'home' } }, locale: 'en' })
|
||||
|
||||
console.log("PL Layout length:", homePl.docs[0]?.layout?.length)
|
||||
console.log("EN Layout length:", homeEn.docs[0]?.layout?.length)
|
||||
process.exit(0)
|
||||
}
|
||||
run().catch(console.error)
|
||||
Reference in New Issue
Block a user