feat: add payload configuration and update TypeScript target

This commit is contained in:
ArraysID
2025-05-08 15:16:59 +07:00
parent 0561555276
commit 45295953aa
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
import config from '@payload-config';
import { getPayload } from 'payload';
export const payload = await getPayload({ config });
+1
View File
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "ES2022",
"baseUrl": ".",
"paths": {
"@payload-config": ["./src/payload.config.ts"]