feat: Next 16 + Payload 3 scaffold with Kaniko CI and Swarm deploy (#1)
Some checks failed
ci/woodpecker/push/web Pipeline failed
Some checks failed
ci/woodpecker/push/web Pipeline failed
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #1.
This commit is contained in:
26
src/collections/Media.ts
Normal file
26
src/collections/Media.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { CollectionConfig } from "payload";
|
||||
|
||||
export const Media: CollectionConfig = {
|
||||
slug: "media",
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
admin: {
|
||||
useAsTitle: "alt",
|
||||
},
|
||||
upload: {
|
||||
staticDir: "media",
|
||||
imageSizes: [
|
||||
{ name: "thumb", width: 400, height: 400, position: "centre" },
|
||||
{ name: "card", width: 800, height: undefined, position: "centre" },
|
||||
{ name: "hero", width: 1600, height: undefined, position: "centre" },
|
||||
{ name: "og", width: 1200, height: 630, position: "centre" },
|
||||
],
|
||||
adminThumbnail: "thumb",
|
||||
mimeTypes: ["image/*"],
|
||||
},
|
||||
fields: [
|
||||
{ name: "alt", type: "text", required: true },
|
||||
{ name: "credit", type: "text" },
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user