2023-01-18 13:34:42 +00:00
|
|
|
import { buildConfig } from 'payload/config';
|
|
|
|
import path from 'path';
|
|
|
|
// import Examples from './collections/Examples';
|
|
|
|
import Users from './collections/Users';
|
2023-01-24 12:20:27 +00:00
|
|
|
import Couriers from './collections/Couriers';
|
|
|
|
import Dispatches from './collections/Dispatches';
|
|
|
|
import Makers from './collections/Makers';
|
|
|
|
import Products from './collections/Products';
|
|
|
|
import Retailers from './collections/Retailers';
|
|
|
|
|
2023-01-18 13:34:42 +00:00
|
|
|
|
|
|
|
export default buildConfig({
|
2023-01-24 14:01:41 +00:00
|
|
|
serverURL: process.env.PAYLOAD_PUBLIC_SERVER_URL,
|
2023-01-18 13:34:42 +00:00
|
|
|
admin: {
|
|
|
|
user: Users.slug,
|
|
|
|
},
|
|
|
|
collections: [
|
|
|
|
Users,
|
2023-01-24 12:20:27 +00:00
|
|
|
Couriers,
|
|
|
|
Dispatches,
|
|
|
|
Makers,
|
|
|
|
Products,
|
|
|
|
Retailers,
|
2023-01-18 13:34:42 +00:00
|
|
|
],
|
|
|
|
typescript: {
|
|
|
|
outputFile: path.resolve(__dirname, 'payload-types.ts'),
|
|
|
|
},
|
|
|
|
graphQL: {
|
|
|
|
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
|
|
|
|
},
|
|
|
|
});
|