feat: enforce kebab-case slugs (#1322)

This commit is contained in:
Elliot DeNolf
2022-10-31 11:11:00 -04:00
committed by GitHub
parent 10c30260dd
commit 0420b6dc27
9 changed files with 36 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ Simple example collection:
import { CollectionConfig } from 'payload/types';
const Admins: CollectionConfig = {
slug:
slug: 'admins',
// highlight-start
auth: {
tokenExpiration: 7200, // How many seconds to keep the user logged in