chore(next): wires server action into document edit view (#4873)
This commit is contained in:
@@ -6,6 +6,7 @@ const nextConfig = {
|
||||
},
|
||||
serverComponentsExternalPackages: ['drizzle-kit', 'drizzle-kit/utils', 'pino', 'pino-pretty'],
|
||||
},
|
||||
reactStrictMode: false,
|
||||
// transpilePackages: ['@payloadcms/db-mongodb', 'mongoose'],
|
||||
webpack: (config) => {
|
||||
return {
|
||||
|
||||
@@ -47,11 +47,13 @@ export const Pages: CollectionConfig = {
|
||||
name: 'number',
|
||||
label: 'Number',
|
||||
type: 'number',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: 'select',
|
||||
label: 'Select',
|
||||
type: 'select',
|
||||
required: true,
|
||||
options: [
|
||||
{
|
||||
label: 'Option 1',
|
||||
@@ -67,6 +69,7 @@ export const Pages: CollectionConfig = {
|
||||
type: 'textarea',
|
||||
name: 'textarea',
|
||||
label: 'Textarea',
|
||||
required: true,
|
||||
admin: {
|
||||
rows: 10,
|
||||
},
|
||||
@@ -80,6 +83,7 @@ export const Pages: CollectionConfig = {
|
||||
name: 'groupText',
|
||||
label: 'Group Text',
|
||||
type: 'text',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user