Apply Lang
This commit is contained in:
1 parent
f0f714e8e2
commit
7cb65bf5e7
7 files changed
+434
-159
No files matched your search
@@ -1,6 +1,13 @@
|
||||
import prisma from '../src/lib/prisma';
|
||||
|
||||
async function main() {
|
||||
console.log('Migrating pages to CMS...');
|
||||
|
||||
// Delete existing to force fresh payload insert
|
||||
await prisma.page.deleteMany({
|
||||
where: { slug: { in: ['about', 'faq', 'contact'] } }
|
||||
});
|
||||
|
||||
// 1. Create About Page
|
||||
await prisma.page.upsert({
|
||||
where: { slug: 'about' },
|
||||
|
||||
Reference in new issue
Block a user