Skip to content

Instantly share code, notes, and snippets.

View fofoy's full-sized avatar

Florian Quiblier fofoy

View GitHub Profile
@fofoy
fofoy / Offers.ts
Last active May 4, 2025 14:50
Reorder Payload Collection items witthout any plugin
// collection
import { Offer } from '@/payload-types'
import { slugify } from '@/utils/slugify'
import type { CollectionConfig, FieldHookArgs } from 'payload'
export const Offers: CollectionConfig = {
slug: 'offers',
labels: {
singular: {