import { Payload } from "payload"; import { User } from "./payload-types"; export const seed = async (payload: Payload): Promise => { // Local API methods skip all access control by default // so we can easily create an admin user directly in init await payload.create({ collection: 'users', data: { email: 'astro@ssg.js', password: 'password', roles: ['ssg'] } }) }