Compare commits

2 Commits

Author SHA1 Message Date
ba6ca90c3a Fix css typo
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-20 13:40:01 +02:00
985774bf24 Add payload seed 2024-05-20 13:31:57 +02:00
2 changed files with 16 additions and 4 deletions

View File

@ -22,10 +22,7 @@
.dark {
--black: 10, 16, 19;:root {
}
--black: 10, 16, 19;
--white: 243, 252, 248;
--absolute-black: 0, 0, 0;
--absolute-white: 255, 255, 255;

15
payload/src/seed.ts Normal file
View File

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