M1 review round 3: a built-site e2e for a late staff collection (both bundlers); docs follow
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
6e0ad26b2c
commit
8a01c72c2a
@@ -18,6 +18,9 @@ import { Pages } from './collections/Pages'
|
||||
// @starter:if posts
|
||||
import { Posts } from './collections/Posts'
|
||||
// @starter:endif
|
||||
// @starter:if demo
|
||||
import { E2E_LATE_STAFF, e2eLateStaff } from '../e2e/late-staff-fixture'
|
||||
// @starter:endif
|
||||
import { contentConfig } from './content.config'
|
||||
import { db } from './db'
|
||||
import { Company } from './globals/Company'
|
||||
@@ -55,7 +58,12 @@ export default buildConfig({
|
||||
plugins: [
|
||||
ipalKit({
|
||||
i18n: i18nConfig,
|
||||
access: { authCollection: 'users' },
|
||||
// @starter:if demo
|
||||
// (the staffCollections entry exists only for e2e/late-staff.spec.ts, with E2E_LATE_STAFF=1)
|
||||
access: { authCollection: 'users', ...(E2E_LATE_STAFF ? { staffCollections: ['late-staff'] } : {}) },
|
||||
// @starter:else
|
||||
//: access: { authCollection: 'users' },
|
||||
// @starter:endif
|
||||
pages: { slug: 'pages' },
|
||||
content: contentConfig,
|
||||
seo: {
|
||||
@@ -105,5 +113,8 @@ export default buildConfig({
|
||||
revalidatePath,
|
||||
}),
|
||||
buildR2Storage(['media'], { s3Storage }), // R2 with the full R2_* set, local disk without it
|
||||
// @starter:if demo
|
||||
e2eLateStaff, // a test fixture, a no-op without E2E_LATE_STAFF=1 (e2e/late-staff-fixture.ts)
|
||||
// @starter:endif
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user