Initial commit

This commit is contained in:
2026-02-10 01:25:57 +01:00
commit 7020a6a339
53 changed files with 1503 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { db } from "../src/client"
async function main() {
await db.post.upsert({
where: { slug: "welcome" },
update: {},
create: {
title: "Welcome to your CMS",
slug: "welcome",
excerpt: "Your first seeded post",
body: "Edit or delete this post from your admin area.",
status: "published",
},
})
}
main()
.catch((error) => {
console.error(error)
process.exit(1)
})
.finally(async () => {
await db.$disconnect()
})