Repo hygiene: stop tracking dist, CI, working dev sandbox
- dist/ no longer committed; prepare builds it for git installs and prepublishOnly runs clean + build + unit tests before every publish. - Gitea Actions CI: typecheck, lint, unit tests, build on push/PR. - New scripts: typecheck, test:watch; test:int runs once; lint covers src + test. - dev/: drop the Mongo memory server and template route, opt out of 2FA, add the pages collection the SEO config expects, alias @intecion/ipal-kit/* to src, fix e2e credentials, regenerate types and import map. - Remove stray src/index.tsgrep, dedupe .gitignore, README peer versions 3.90.2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -1,6 +1,24 @@
|
||||
import { OverviewComponent as OverviewComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||
import { MetaTitleComponent as MetaTitleComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||
import { MetaDescriptionComponent as MetaDescriptionComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||
import { MetaImageComponent as MetaImageComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||
import { PreviewComponent as PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860 } from '@payloadcms/plugin-seo/client'
|
||||
import { IntegrationStatusBanner as IntegrationStatusBanner_630f031911beff97691b963f10a20a86 } from '@intecion/ipal-kit/client'
|
||||
import { MaskedField as MaskedField_630f031911beff97691b963f10a20a86 } from '@intecion/ipal-kit/client'
|
||||
import { TestEmailButton as TestEmailButton_630f031911beff97691b963f10a20a86 } from '@intecion/ipal-kit/client'
|
||||
import { IntegrationAlerts as IntegrationAlerts_7568fe47d582ff15ce85d2e1873c2c23 } from '@intecion/ipal-kit/admin'
|
||||
import { CollectionCards as CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 } from '@payloadcms/next/rsc'
|
||||
|
||||
/** @type import('payload').ImportMap */
|
||||
export const importMap = {
|
||||
"@payloadcms/plugin-seo/client#OverviewComponent": OverviewComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||
"@payloadcms/plugin-seo/client#MetaTitleComponent": MetaTitleComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||
"@payloadcms/plugin-seo/client#MetaDescriptionComponent": MetaDescriptionComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||
"@payloadcms/plugin-seo/client#MetaImageComponent": MetaImageComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||
"@payloadcms/plugin-seo/client#PreviewComponent": PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860,
|
||||
"@intecion/ipal-kit/client#IntegrationStatusBanner": IntegrationStatusBanner_630f031911beff97691b963f10a20a86,
|
||||
"@intecion/ipal-kit/client#MaskedField": MaskedField_630f031911beff97691b963f10a20a86,
|
||||
"@intecion/ipal-kit/client#TestEmailButton": TestEmailButton_630f031911beff97691b963f10a20a86,
|
||||
"@intecion/ipal-kit/admin#IntegrationAlerts": IntegrationAlerts_7568fe47d582ff15ce85d2e1873c2c23,
|
||||
"@payloadcms/next/rsc#CollectionCards": CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import configPromise from '@payload-config'
|
||||
import { getPayload } from 'payload'
|
||||
|
||||
export const GET = async (request: Request) => {
|
||||
const payload = await getPayload({
|
||||
config: configPromise,
|
||||
})
|
||||
|
||||
return Response.json({
|
||||
message: 'This is an example of a custom route.',
|
||||
})
|
||||
}
|
||||
+4
-3
@@ -1,12 +1,13 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
|
||||
// this is an example Playwright e2e test
|
||||
import { devUser } from './helpers/credentials.js'
|
||||
|
||||
test('should render admin panel logo', async ({ page }) => {
|
||||
await page.goto('/admin')
|
||||
|
||||
// login
|
||||
await page.fill('#field-email', '[email protected]')
|
||||
await page.fill('#field-password', 'test')
|
||||
await page.fill('#field-email', devUser.email)
|
||||
await page.fill('#field-password', devUser.password)
|
||||
await page.click('.form-submit button')
|
||||
|
||||
// should show dashboard
|
||||
|
||||
@@ -15,7 +15,6 @@ const nextConfig = {
|
||||
|
||||
return webpackConfig
|
||||
},
|
||||
serverExternalPackages: ['mongodb-memory-server'],
|
||||
}
|
||||
|
||||
export default withPayload(nextConfig, { devBundleServerPackages: false })
|
||||
|
||||
+187
-27
@@ -68,6 +68,7 @@ export interface Config {
|
||||
blocks: {};
|
||||
collections: {
|
||||
users: User;
|
||||
pages: Page;
|
||||
posts: Post;
|
||||
media: Media;
|
||||
'payload-kv': PayloadKv;
|
||||
@@ -78,6 +79,7 @@ export interface Config {
|
||||
collectionsJoins: {};
|
||||
collectionsSelect: {
|
||||
users: UsersSelect<false> | UsersSelect<true>;
|
||||
pages: PagesSelect<false> | PagesSelect<true>;
|
||||
posts: PostsSelect<false> | PostsSelect<true>;
|
||||
media: MediaSelect<false> | MediaSelect<true>;
|
||||
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
|
||||
@@ -93,11 +95,13 @@ export interface Config {
|
||||
'site-settings': SiteSetting;
|
||||
'site-integrations': SiteIntegration;
|
||||
'cookie-settings': CookieSetting;
|
||||
notifications: Notification;
|
||||
};
|
||||
globalsSelect: {
|
||||
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>;
|
||||
'site-integrations': SiteIntegrationsSelect<false> | SiteIntegrationsSelect<true>;
|
||||
'cookie-settings': CookieSettingsSelect<false> | CookieSettingsSelect<true>;
|
||||
notifications: NotificationsSelect<false> | NotificationsSelect<true>;
|
||||
};
|
||||
locale: 'pl' | 'en';
|
||||
widgets: {
|
||||
@@ -144,6 +148,7 @@ export interface User {
|
||||
resetPasswordExpiration?: string | null;
|
||||
salt?: string | null;
|
||||
hash?: string | null;
|
||||
resetPasswordRequestedAt?: string | null;
|
||||
loginAttempts?: number | null;
|
||||
lockUntil?: string | null;
|
||||
sessions?:
|
||||
@@ -158,10 +163,11 @@ export interface User {
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts".
|
||||
* via the `definition` "pages".
|
||||
*/
|
||||
export interface Post {
|
||||
export interface Page {
|
||||
id: number;
|
||||
title?: string | null;
|
||||
meta?: {
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
@@ -169,6 +175,10 @@ export interface Post {
|
||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||
*/
|
||||
image?: (number | null) | Media;
|
||||
/**
|
||||
* Use this exact text as the browser-tab title — no site name, no separator. Leave empty to compose the title automatically.
|
||||
*/
|
||||
titleOverride?: string | null;
|
||||
};
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
@@ -191,6 +201,28 @@ export interface Media {
|
||||
focalX?: number | null;
|
||||
focalY?: number | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts".
|
||||
*/
|
||||
export interface Post {
|
||||
id: number;
|
||||
title?: string | null;
|
||||
meta?: {
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
/**
|
||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||
*/
|
||||
image?: (number | null) | Media;
|
||||
/**
|
||||
* Use this exact text as the browser-tab title — no site name, no separator. Leave empty to compose the title automatically.
|
||||
*/
|
||||
titleOverride?: string | null;
|
||||
};
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "payload-kv".
|
||||
@@ -219,6 +251,10 @@ export interface PayloadLockedDocument {
|
||||
relationTo: 'users';
|
||||
value: number | User;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'pages';
|
||||
value: number | Page;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'posts';
|
||||
value: number | Post;
|
||||
@@ -282,6 +318,7 @@ export interface UsersSelect<T extends boolean = true> {
|
||||
resetPasswordExpiration?: T;
|
||||
salt?: T;
|
||||
hash?: T;
|
||||
resetPasswordRequestedAt?: T;
|
||||
loginAttempts?: T;
|
||||
lockUntil?: T;
|
||||
sessions?:
|
||||
@@ -294,15 +331,34 @@ export interface UsersSelect<T extends boolean = true> {
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts_select".
|
||||
* via the `definition` "pages_select".
|
||||
*/
|
||||
export interface PostsSelect<T extends boolean = true> {
|
||||
export interface PagesSelect<T extends boolean = true> {
|
||||
title?: T;
|
||||
meta?:
|
||||
| T
|
||||
| {
|
||||
title?: T;
|
||||
description?: T;
|
||||
image?: T;
|
||||
titleOverride?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "posts_select".
|
||||
*/
|
||||
export interface PostsSelect<T extends boolean = true> {
|
||||
title?: T;
|
||||
meta?:
|
||||
| T
|
||||
| {
|
||||
title?: T;
|
||||
description?: T;
|
||||
image?: T;
|
||||
titleOverride?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
@@ -374,6 +430,18 @@ export interface SiteSetting {
|
||||
* Used in page titles and Open Graph metadata.
|
||||
*/
|
||||
siteName: string;
|
||||
/**
|
||||
* Fallback meta description when a page has none. Also used for llms.txt and Open Graph.
|
||||
*/
|
||||
siteDescription?: string | null;
|
||||
/**
|
||||
* Which comes first in browser tabs.
|
||||
*/
|
||||
titleOrder?: ('page-first' | 'site-first') | null;
|
||||
/**
|
||||
* Separates the page title from the site name in browser tabs.
|
||||
*/
|
||||
titleSeparator?: ('|' | '–' | '-' | '·' | '/') | null;
|
||||
/**
|
||||
* Primary site logo.
|
||||
*/
|
||||
@@ -383,7 +451,7 @@ export interface SiteSetting {
|
||||
*/
|
||||
defaultShareImage?: (number | null) | Media;
|
||||
/**
|
||||
* Square source icon (PNG or SVG) for the browser tab. Rendered by the frontend.
|
||||
* Square icon, PNG or SVG, min. 48×48px (Google requires this to show it in search). Rendered via buildIconsMetadata.
|
||||
*/
|
||||
favicon?: (number | null) | Media;
|
||||
/**
|
||||
@@ -404,13 +472,29 @@ export interface SiteSetting {
|
||||
export interface SiteIntegration {
|
||||
id: number;
|
||||
/**
|
||||
* Google Analytics 4 Measurement ID.
|
||||
* Google Analytics 4 Measurement ID. (Google — Consent Mode)
|
||||
*/
|
||||
ga4MeasurementId?: string | null;
|
||||
/**
|
||||
* Google Tag Manager container ID.
|
||||
* Google Tag Manager container ID. (Google — Consent Mode)
|
||||
*/
|
||||
gtmContainerId?: string | null;
|
||||
/**
|
||||
* Meta (Facebook) Pixel ID. Loads only after MARKETING consent.
|
||||
*/
|
||||
metaPixelId?: string | null;
|
||||
/**
|
||||
* Microsoft Clarity project ID (heatmaps). Loads only after ANALYTICS consent.
|
||||
*/
|
||||
clarityProjectId?: string | null;
|
||||
/**
|
||||
* LinkedIn Insight Tag partner ID. Loads only after MARKETING consent.
|
||||
*/
|
||||
linkedInPartnerId?: string | null;
|
||||
/**
|
||||
* TikTok Pixel ID. Loads only after MARKETING consent.
|
||||
*/
|
||||
tiktokPixelId?: string | null;
|
||||
/**
|
||||
* Public site key rendered in the Turnstile widget.
|
||||
*/
|
||||
@@ -419,6 +503,17 @@ export interface SiteIntegration {
|
||||
* Secret key used for server-side verification.
|
||||
*/
|
||||
turnstileSecretKey?: string | null;
|
||||
turnstileStatus?: {
|
||||
state?: ('ok' | 'degraded') | null;
|
||||
code?: string | null;
|
||||
message?: string | null;
|
||||
since?: string | null;
|
||||
checkedAt?: string | null;
|
||||
};
|
||||
/**
|
||||
* How outbound email is sent. "Microsoft Graph" is only available when configured by the administrator (Intecion).
|
||||
*/
|
||||
emailTransport?: ('smtp' | 'graph') | null;
|
||||
smtpHost?: string | null;
|
||||
smtpPort?: number | null;
|
||||
/**
|
||||
@@ -437,22 +532,13 @@ export interface SiteIntegration {
|
||||
* Default "from" display name.
|
||||
*/
|
||||
smtpFromName?: string | null;
|
||||
/**
|
||||
* R2 bucket name.
|
||||
*/
|
||||
r2Bucket?: string | null;
|
||||
/**
|
||||
* R2 S3-compatible endpoint URL.
|
||||
*/
|
||||
r2Endpoint?: string | null;
|
||||
/**
|
||||
* R2 access key ID.
|
||||
*/
|
||||
r2AccessKeyId?: string | null;
|
||||
/**
|
||||
* R2 secret access key.
|
||||
*/
|
||||
r2SecretAccessKey?: string | null;
|
||||
emailStatus?: {
|
||||
state?: ('ok' | 'degraded') | null;
|
||||
code?: string | null;
|
||||
message?: string | null;
|
||||
since?: string | null;
|
||||
checkedAt?: string | null;
|
||||
};
|
||||
updatedAt?: string | null;
|
||||
createdAt?: string | null;
|
||||
}
|
||||
@@ -470,6 +556,10 @@ export interface CookieSetting {
|
||||
* Heading for the detailed settings panel.
|
||||
*/
|
||||
settingsTitle?: string | null;
|
||||
/**
|
||||
* Text of the privacy-policy link in the banner, e.g. "Privacy policy". The link target is the page assigned as Privacy Policy in Site Settings → System Pages. Empty → the page title is used.
|
||||
*/
|
||||
privacyLinkLabel?: string | null;
|
||||
/**
|
||||
* Button labels.
|
||||
*/
|
||||
@@ -494,12 +584,42 @@ export interface CookieSetting {
|
||||
updatedAt?: string | null;
|
||||
createdAt?: string | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "notifications".
|
||||
*/
|
||||
export interface Notification {
|
||||
id: number;
|
||||
/**
|
||||
* Messages shown after a form is submitted. Leave a field empty to use the built-in default.
|
||||
*/
|
||||
form?: {
|
||||
success?: string | null;
|
||||
error?: string | null;
|
||||
rateLimited?: string | null;
|
||||
turnstile?: string | null;
|
||||
/**
|
||||
* Shown on a validation error. Use {field} to insert the offending field name.
|
||||
*/
|
||||
validation?: string | null;
|
||||
/**
|
||||
* Shown when the GDPR consent checkbox is left unchecked.
|
||||
*/
|
||||
consent?: string | null;
|
||||
notFound?: string | null;
|
||||
};
|
||||
updatedAt?: string | null;
|
||||
createdAt?: string | null;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "site-settings_select".
|
||||
*/
|
||||
export interface SiteSettingsSelect<T extends boolean = true> {
|
||||
siteName?: T;
|
||||
siteDescription?: T;
|
||||
titleOrder?: T;
|
||||
titleSeparator?: T;
|
||||
logo?: T;
|
||||
defaultShareImage?: T;
|
||||
favicon?: T;
|
||||
@@ -516,18 +636,37 @@ export interface SiteSettingsSelect<T extends boolean = true> {
|
||||
export interface SiteIntegrationsSelect<T extends boolean = true> {
|
||||
ga4MeasurementId?: T;
|
||||
gtmContainerId?: T;
|
||||
metaPixelId?: T;
|
||||
clarityProjectId?: T;
|
||||
linkedInPartnerId?: T;
|
||||
tiktokPixelId?: T;
|
||||
turnstileSiteKey?: T;
|
||||
turnstileSecretKey?: T;
|
||||
turnstileStatus?:
|
||||
| T
|
||||
| {
|
||||
state?: T;
|
||||
code?: T;
|
||||
message?: T;
|
||||
since?: T;
|
||||
checkedAt?: T;
|
||||
};
|
||||
emailTransport?: T;
|
||||
smtpHost?: T;
|
||||
smtpPort?: T;
|
||||
smtpUser?: T;
|
||||
smtpPassword?: T;
|
||||
smtpFromAddress?: T;
|
||||
smtpFromName?: T;
|
||||
r2Bucket?: T;
|
||||
r2Endpoint?: T;
|
||||
r2AccessKeyId?: T;
|
||||
r2SecretAccessKey?: T;
|
||||
emailStatus?:
|
||||
| T
|
||||
| {
|
||||
state?: T;
|
||||
code?: T;
|
||||
message?: T;
|
||||
since?: T;
|
||||
checkedAt?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
globalType?: T;
|
||||
@@ -539,6 +678,7 @@ export interface SiteIntegrationsSelect<T extends boolean = true> {
|
||||
export interface CookieSettingsSelect<T extends boolean = true> {
|
||||
message?: T;
|
||||
settingsTitle?: T;
|
||||
privacyLinkLabel?: T;
|
||||
buttons?:
|
||||
| T
|
||||
| {
|
||||
@@ -560,6 +700,26 @@ export interface CookieSettingsSelect<T extends boolean = true> {
|
||||
createdAt?: T;
|
||||
globalType?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "notifications_select".
|
||||
*/
|
||||
export interface NotificationsSelect<T extends boolean = true> {
|
||||
form?:
|
||||
| T
|
||||
| {
|
||||
success?: T;
|
||||
error?: T;
|
||||
rateLimited?: T;
|
||||
turnstile?: T;
|
||||
validation?: T;
|
||||
consent?: T;
|
||||
notFound?: T;
|
||||
};
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
globalType?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "collections_widget".
|
||||
|
||||
+55
-65
@@ -1,7 +1,6 @@
|
||||
import { sqliteAdapter } from '@payloadcms/db-sqlite'
|
||||
import { lexicalEditor } from '@payloadcms/richtext-lexical'
|
||||
import { ipalKit } from 'ipal-kit'
|
||||
import { MongoMemoryReplSet } from 'mongodb-memory-server'
|
||||
import { ipalKit } from '../src/index.js'
|
||||
import path from 'path'
|
||||
import { buildConfig } from 'payload'
|
||||
import sharp from 'sharp'
|
||||
@@ -17,70 +16,61 @@ if (!process.env.ROOT_DIR) {
|
||||
process.env.ROOT_DIR = dirname
|
||||
}
|
||||
|
||||
const buildConfigWithMemoryDB = async () => {
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
const memoryDB = await MongoMemoryReplSet.create({
|
||||
replSet: {
|
||||
count: 3,
|
||||
dbName: 'payloadmemory',
|
||||
},
|
||||
})
|
||||
|
||||
process.env.DATABASE_URL = `${memoryDB.getUri()}&retryWrites=true`
|
||||
}
|
||||
|
||||
return buildConfig({
|
||||
admin: {
|
||||
importMap: {
|
||||
baseDir: path.resolve(dirname),
|
||||
},
|
||||
export default buildConfig({
|
||||
admin: {
|
||||
importMap: {
|
||||
baseDir: path.resolve(dirname),
|
||||
},
|
||||
collections: [
|
||||
{
|
||||
slug: 'users',
|
||||
auth: true,
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
slug: 'posts',
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
slug: 'media',
|
||||
fields: [],
|
||||
upload: { staticDir: path.resolve(dirname, 'media') },
|
||||
},
|
||||
],
|
||||
},
|
||||
collections: [
|
||||
{
|
||||
slug: 'users',
|
||||
auth: true,
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
slug: 'pages',
|
||||
fields: [{ name: 'title', type: 'text' }],
|
||||
},
|
||||
{
|
||||
slug: 'posts',
|
||||
fields: [{ name: 'title', type: 'text' }],
|
||||
},
|
||||
{
|
||||
slug: 'media',
|
||||
fields: [],
|
||||
upload: { staticDir: path.resolve(dirname, 'media') },
|
||||
},
|
||||
],
|
||||
|
||||
db: sqliteAdapter({
|
||||
client: {
|
||||
url: process.env.DATABASE_URI || 'file:./payload.db',
|
||||
db: sqliteAdapter({
|
||||
client: {
|
||||
url: process.env.DATABASE_URI || 'file:./payload.db',
|
||||
},
|
||||
}),
|
||||
editor: lexicalEditor(),
|
||||
email: testEmailAdapter,
|
||||
onInit: async (payload) => {
|
||||
await seed(payload)
|
||||
},
|
||||
plugins: [
|
||||
ipalKit({
|
||||
access: { authCollection: 'users' },
|
||||
i18n: {
|
||||
defaultLocale: 'pl',
|
||||
locales: [
|
||||
{ code: 'pl', label: 'Polski' },
|
||||
{ code: 'en', label: 'English' },
|
||||
],
|
||||
},
|
||||
seo: { collections: ['posts', 'pages'] },
|
||||
// 2FA is enforced by default; the dev sandbox opts out so it boots without an authenticator.
|
||||
twoFactor: false,
|
||||
}),
|
||||
editor: lexicalEditor(),
|
||||
email: testEmailAdapter,
|
||||
onInit: async (payload) => {
|
||||
await seed(payload)
|
||||
},
|
||||
plugins: [
|
||||
ipalKit({
|
||||
access: { authCollection: 'users' },
|
||||
i18n: {
|
||||
defaultLocale: 'pl',
|
||||
locales: [
|
||||
{ code: 'pl', label: 'Polski' },
|
||||
{ code: 'en', label: 'English' },
|
||||
],
|
||||
},
|
||||
seo: { collections: ['posts', 'pages'] },
|
||||
}),
|
||||
],
|
||||
secret: process.env.PAYLOAD_SECRET || 'test-secret_key',
|
||||
sharp,
|
||||
typescript: {
|
||||
outputFile: path.resolve(dirname, 'payload-types.ts'),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export default buildConfigWithMemoryDB()
|
||||
],
|
||||
secret: process.env.PAYLOAD_SECRET || 'test-secret_key',
|
||||
sharp,
|
||||
typescript: {
|
||||
outputFile: path.resolve(dirname, 'payload-types.ts'),
|
||||
},
|
||||
})
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
],
|
||||
"ipal-kit/rsc": [
|
||||
"../src/exports/rsc.ts"
|
||||
],
|
||||
"@intecion/ipal-kit": [
|
||||
"../src/index.ts"
|
||||
],
|
||||
"@intecion/ipal-kit/next/middleware": [
|
||||
"../src/exports/next-middleware.ts"
|
||||
],
|
||||
"@intecion/ipal-kit/*": [
|
||||
"../src/exports/*.ts"
|
||||
]
|
||||
},
|
||||
"noEmit": true,
|
||||
|
||||
Reference in New Issue
Block a user