Compare commits

...

2 Commits

Author SHA1 Message Date
augurk e7db1595c8 adds env.example file
continuous-integration/drone/push Build is passing Details
2023-01-24 15:15:54 +01:00
augurk c8455ed31f makes sure the value titels are shown not just the ID's 2023-01-24 15:15:42 +01:00
6 changed files with 18 additions and 29 deletions

6
.env.example Normal file
View File

@ -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

View File

@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
const Dispatches: CollectionConfig = { const Dispatches: CollectionConfig = {
slug: 'dispatches', slug: 'dispatches',
// admin: { admin: {
// useAsTitle: 'email', useAsTitle: 'dispatchesCode',
// }, },
access: { access: {
read: () => true, read: () => true,
}, },

View File

@ -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;

View File

@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
const Makers: CollectionConfig = { const Makers: CollectionConfig = {
slug: 'makers', slug: 'makers',
// admin: { admin: {
// useAsTitle: 'email', useAsTitle: 'name',
// }, },
access: { access: {
read: () => true, read: () => true,
}, },

View File

@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
const Products: CollectionConfig = { const Products: CollectionConfig = {
slug: 'products', slug: 'products',
// admin: { admin: {
// useAsTitle: 'email', useAsTitle: 'productTitle',
// }, },
access: { access: {
read: () => true, read: () => true,
}, },

View File

@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
const Retailers: CollectionConfig = { const Retailers: CollectionConfig = {
slug: 'retailers', slug: 'retailers',
// admin: { admin: {
// useAsTitle: 'email', useAsTitle: 'name',
// }, },
access: { access: {
read: () => true, read: () => true,
}, },