Compare commits
2 Commits
6836f05d06
...
e7db1595c8
Author | SHA1 | Date |
---|---|---|
augurk | e7db1595c8 | |
augurk | c8455ed31f |
|
@ -0,0 +1,6 @@
|
|||
MONGODB_URI=
|
||||
PAYLOAD_SECRET=
|
||||
# local
|
||||
PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000
|
||||
# Production
|
||||
# PAYLOAD_PUBLIC_SERVER_URL=https://kios-admin.lumbung.space
|
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||
|
||||
const Dispatches: CollectionConfig = {
|
||||
slug: 'dispatches',
|
||||
// admin: {
|
||||
// useAsTitle: 'email',
|
||||
// },
|
||||
admin: {
|
||||
useAsTitle: 'dispatchesCode',
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
import { CollectionConfig } from 'payload/types';
|
||||
|
||||
// Example Collection - For reference only, this must be added to payload.config.ts to be used.
|
||||
const Examples: CollectionConfig = {
|
||||
slug: 'examples',
|
||||
admin: {
|
||||
useAsTitle: 'someField',
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'someField',
|
||||
type: 'text',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export default Examples;
|
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||
|
||||
const Makers: CollectionConfig = {
|
||||
slug: 'makers',
|
||||
// admin: {
|
||||
// useAsTitle: 'email',
|
||||
// },
|
||||
admin: {
|
||||
useAsTitle: 'name',
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
|
|
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||
|
||||
const Products: CollectionConfig = {
|
||||
slug: 'products',
|
||||
// admin: {
|
||||
// useAsTitle: 'email',
|
||||
// },
|
||||
admin: {
|
||||
useAsTitle: 'productTitle',
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
|
|
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||
|
||||
const Retailers: CollectionConfig = {
|
||||
slug: 'retailers',
|
||||
// admin: {
|
||||
// useAsTitle: 'email',
|
||||
// },
|
||||
admin: {
|
||||
useAsTitle: 'name',
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue