23 lines
657 B
TypeScript
23 lines
657 B
TypeScript
![]() |
import { buildConfig } from "payload/config";
|
||
|
import path from "path";
|
||
|
import { Users } from "./collections/Users";
|
||
|
import { Languages } from "./collections/Languages";
|
||
|
import { Recorders } from "./collections/Recorders/Recorders";
|
||
|
import { Images } from "./collections/Images";
|
||
|
|
||
|
export default buildConfig({
|
||
|
serverURL: "http://localhost:3000",
|
||
|
admin: {
|
||
|
user: Users.slug,
|
||
|
},
|
||
|
collections: [Users, Languages, Recorders, Images],
|
||
|
globals: [],
|
||
|
telemetry: false,
|
||
|
typescript: {
|
||
|
outputFile: path.resolve(__dirname, "types/collections.ts"),
|
||
|
},
|
||
|
graphQL: {
|
||
|
schemaOutputFile: path.resolve(__dirname, "generated-schema.graphql"),
|
||
|
},
|
||
|
});
|