This commit is contained in:
2022-07-22 00:11:45 +00:00
commit 806476076f
8 changed files with 30206 additions and 0 deletions

20
src/payload.config.ts Normal file
View File

@@ -0,0 +1,20 @@
import { buildConfig } from 'payload/config';
import path from 'path';
import Users from './collections/Users';
export default buildConfig({
serverURL: 'http://localhost:3001',
admin: {
user: Users.slug,
},
collections: [
Users,
],
typescript: {
outputFile: path.resolve(__dirname, 'payload-types.ts'),
},
graphQL: {
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
},
});