chore: implements withPayload

This commit is contained in:
James 2024-03-01 12:33:44 -05:00
parent cbe282b5fd
commit 0159b4a9e8
4 changed files with 50 additions and 48 deletions

6
next.config.js Normal file
View File

@ -0,0 +1,6 @@
const { withPayload } = require("@payloadcms/next");
/** @type {import('next').NextConfig} */
const nextConfig = {};
module.exports = withPayload(nextConfig);

View File

@ -1,4 +0,0 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default nextConfig;

View File

@ -9,12 +9,12 @@
"lint": "next lint"
},
"dependencies": {
"@payloadcms/db-mongodb": "3.0.0-alpha.2",
"@payloadcms/next": "3.0.0-alpha.2",
"@payloadcms/richtext-slate": "3.0.0-alpha.2",
"@payloadcms/ui": "3.0.0-alpha.2",
"@payloadcms/db-mongodb": "3.0.0-alpha.3",
"@payloadcms/next": "3.0.0-alpha.3",
"@payloadcms/richtext-slate": "3.0.0-alpha.3",
"@payloadcms/ui": "3.0.0-alpha.3",
"next": "14.1.1-canary.26",
"payload": "3.0.0-alpha.2",
"payload": "3.0.0-alpha.3",
"react": "^18",
"react-dom": "^18",
"react-router": "^6.22.2",

View File

@ -6,23 +6,23 @@ settings:
dependencies:
'@payloadcms/db-mongodb':
specifier: 3.0.0-alpha.2
version: 3.0.0-alpha.2(payload@3.0.0-alpha.2)
specifier: 3.0.0-alpha.3
version: 3.0.0-alpha.3(payload@3.0.0-alpha.3)
'@payloadcms/next':
specifier: 3.0.0-alpha.2
version: 3.0.0-alpha.2(@types/react@18.2.60)(http-status@1.6.2)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.2)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
specifier: 3.0.0-alpha.3
version: 3.0.0-alpha.3(@types/react@18.2.60)(http-status@1.6.2)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.3)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
'@payloadcms/richtext-slate':
specifier: 3.0.0-alpha.2
version: 3.0.0-alpha.2(@payloadcms/translations@3.0.0-alpha.2)(@payloadcms/ui@3.0.0-alpha.2)(payload@3.0.0-alpha.2)(react-dom@18.2.0)
specifier: 3.0.0-alpha.3
version: 3.0.0-alpha.3(@payloadcms/translations@3.0.0-alpha.3)(@payloadcms/ui@3.0.0-alpha.3)(payload@3.0.0-alpha.3)(react-dom@18.2.0)
'@payloadcms/ui':
specifier: 3.0.0-alpha.2
version: 3.0.0-alpha.2(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.2)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
specifier: 3.0.0-alpha.3
version: 3.0.0-alpha.3(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.3)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
next:
specifier: 14.1.1-canary.26
version: 14.1.1-canary.26(react-dom@18.2.0)(react@18.2.0)(sass@1.71.1)
payload:
specifier: 3.0.0-alpha.2
version: 3.0.0-alpha.2
specifier: 3.0.0-alpha.3
version: 3.0.0-alpha.3
react:
specifier: ^18
version: 18.2.0
@ -1326,8 +1326,8 @@ packages:
fastq: 1.17.1
dev: true
/@payloadcms/db-mongodb@3.0.0-alpha.2(payload@3.0.0-alpha.2):
resolution: {integrity: sha512-0lCldcALR/2/igkNiVRvSrPd6oXtemmNYck1ADtYI4DjIN9mROlECmseEFfw80/+husFDp1rsYYTdo5MSkgQrw==}
/@payloadcms/db-mongodb@3.0.0-alpha.3(payload@3.0.0-alpha.3):
resolution: {integrity: sha512-/2TvCXui7EQXa7Rn856aTVeFR3aJ65hTbkIIAisgHXoOjbONpVV2Sy+P6RCbSdIL8sDMpbN9PIvD1U8HcfHrLA==}
peerDependencies:
payload: ^2.0.0
dependencies:
@ -1338,7 +1338,7 @@ packages:
mongoose: 6.12.3
mongoose-aggregate-paginate-v2: 1.0.6
mongoose-paginate-v2: 1.7.22
payload: 3.0.0-alpha.2
payload: 3.0.0-alpha.3
prompts: 2.4.2
uuid: 9.0.0
transitivePeerDependencies:
@ -1346,8 +1346,8 @@ packages:
- supports-color
dev: false
/@payloadcms/graphql@3.0.0-alpha.2(payload@3.0.0-alpha.2):
resolution: {integrity: sha512-cQPmRDwJSavQVESZPAXhEyb1VHLvC7en4maUHRJttPM8OVLuOKk9qM0Y7kBvxk9hDsTZfFZ5yryTYRZHohw2mA==}
/@payloadcms/graphql@3.0.0-alpha.3(payload@3.0.0-alpha.3):
resolution: {integrity: sha512-OpGTUMmf8xSlNf1WgApnQgAwXM3DwzdzidBShzmaV0CiGbfiJck6xDtpnxVkblc3BJSLZQ1Wx36lTW5uzws8SA==}
peerDependencies:
payload: ^2.0.0
dependencies:
@ -1357,12 +1357,12 @@ packages:
graphql-query-complexity: 0.12.0(graphql@16.8.1)
graphql-scalars: 1.22.2(graphql@16.8.1)
graphql-type-json: 0.3.2(graphql@16.8.1)
payload: 3.0.0-alpha.2
payload: 3.0.0-alpha.3
pluralize: 8.0.0
dev: false
/@payloadcms/next@3.0.0-alpha.2(@types/react@18.2.60)(http-status@1.6.2)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.2)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0):
resolution: {integrity: sha512-TQqkHA/Q0ErRvtykgtjaW9ymYaRD0tAQOfh7HVzUUuukh5vb9wpUcJw5boj7xbjwY5DQlZee1eM0i4/AjFevlA==}
/@payloadcms/next@3.0.0-alpha.3(@types/react@18.2.60)(http-status@1.6.2)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.3)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0):
resolution: {integrity: sha512-sLZLL3EX8aTYZ6KVZfZWTOANk8TEoIOlPm6prsuQrNLq9AhGAuJ9hODTswM94enJhc0Ih1muaeN02Fn6pPnAfg==}
engines: {node: '>=18.17.0'}
hasBin: true
peerDependencies:
@ -1371,9 +1371,9 @@ packages:
payload: ^2.0.0
dependencies:
'@dnd-kit/core': 6.0.8(react-dom@18.2.0)(react@18.2.0)
'@payloadcms/graphql': 3.0.0-alpha.2(payload@3.0.0-alpha.2)
'@payloadcms/translations': 3.0.0-alpha.2
'@payloadcms/ui': 3.0.0-alpha.2(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.2)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
'@payloadcms/graphql': 3.0.0-alpha.3(payload@3.0.0-alpha.3)
'@payloadcms/translations': 3.0.0-alpha.3
'@payloadcms/ui': 3.0.0-alpha.3(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.3)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
'@types/busboy': 1.5.3
busboy: 1.6.0
deep-equal: 2.2.2
@ -1383,7 +1383,7 @@ packages:
http-status: 1.6.2
next: 14.1.1-canary.26(react-dom@18.2.0)(react@18.2.0)(sass@1.71.1)
path-to-regexp: 6.2.1
payload: 3.0.0-alpha.2
payload: 3.0.0-alpha.3
react-diff-viewer-continued: 3.2.6(react-dom@18.2.0)(react@18.2.0)
react-toastify: 8.2.0(react-dom@18.2.0)(react@18.2.0)
transitivePeerDependencies:
@ -1395,19 +1395,19 @@ packages:
- scheduler
dev: false
/@payloadcms/richtext-slate@3.0.0-alpha.2(@payloadcms/translations@3.0.0-alpha.2)(@payloadcms/ui@3.0.0-alpha.2)(payload@3.0.0-alpha.2)(react-dom@18.2.0):
resolution: {integrity: sha512-tULtRjyXyGgCww4o3GBzJMfmLIi+QzhkmimPEvwq21G7AVdnQespfTvJHi4mFMncYpcsFsUpDyW8aoaZp55KTg==}
/@payloadcms/richtext-slate@3.0.0-alpha.3(@payloadcms/translations@3.0.0-alpha.3)(@payloadcms/ui@3.0.0-alpha.3)(payload@3.0.0-alpha.3)(react-dom@18.2.0):
resolution: {integrity: sha512-1om5J/llBOURDMFv1CRWkPzga1akAw78568TFZSpUs3t/1MTf11Rvd8Fs7wZGYljm+foo2AFJpKaW+fEy7zJgw==}
engines: {node: '>=18.17.0'}
peerDependencies:
'@payloadcms/translations': 3.0.0-alpha.2
'@payloadcms/ui': 3.0.0-alpha.2
'@payloadcms/translations': 3.0.0-alpha.3
'@payloadcms/ui': 3.0.0-alpha.3
payload: ^2.3.0
dependencies:
'@faceless-ui/modal': 2.0.2(react-dom@18.2.0)(react@18.2.0)
'@payloadcms/translations': 3.0.0-alpha.2
'@payloadcms/ui': 3.0.0-alpha.2(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.2)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
'@payloadcms/translations': 3.0.0-alpha.3
'@payloadcms/ui': 3.0.0-alpha.3(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.3)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0)
is-hotkey: 0.2.0
payload: 3.0.0-alpha.2
payload: 3.0.0-alpha.3
react: 18.2.0
slate: 0.91.4
slate-history: 0.86.0(slate@0.91.4)
@ -1417,12 +1417,12 @@ packages:
- react-dom
dev: false
/@payloadcms/translations@3.0.0-alpha.2:
resolution: {integrity: sha512-H5HxwjX6uzXAqIWcvaHbSQVV3+W309D/x1++pwep/HiG9yAexMtJOp4hrqg7aSpmoNfmpW/SMGPVNXjuLTzXkA==}
/@payloadcms/translations@3.0.0-alpha.3:
resolution: {integrity: sha512-RuXdlS93VhE8ZHfdobtFrO3l+gG5XmIt6w2w3kD1lSxKc2/SAg8XxA817hIoSO/S3vzKgN60XQ+0x5obppTKRw==}
dev: false
/@payloadcms/ui@3.0.0-alpha.2(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.2)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0):
resolution: {integrity: sha512-XyJQc2fcADZOEkcc9R9m9DFWVs82p6wM2+u5yWTy/tQ61NtVTIKQQjG5M1hRF7L4HQ2myWIRWchDQbZOVsRqNg==}
/@payloadcms/ui@3.0.0-alpha.3(@types/react@18.2.60)(monaco-editor@0.46.0)(next@14.1.1-canary.26)(payload@3.0.0-alpha.3)(react-dom@18.2.0)(react@18.2.0)(scheduler@0.23.0):
resolution: {integrity: sha512-F1MW+hBRfe+X/YZet4BjEm1S9sbm9YfQ5iT5kZcW8ZEXYCGNxxwNrVp5b3JEnn7tizogfGCwtc+QXgAqBOPKzQ==}
engines: {node: '>=18.17.0'}
peerDependencies:
next: ^14.0.0
@ -1435,7 +1435,7 @@ packages:
'@faceless-ui/scroll-info': 1.3.0(react-dom@18.2.0)(react@18.2.0)
'@faceless-ui/window-info': 2.1.2(react-dom@18.2.0)(react@18.2.0)
'@monaco-editor/react': 4.5.1(monaco-editor@0.46.0)(react-dom@18.2.0)(react@18.2.0)
'@payloadcms/translations': 3.0.0-alpha.2
'@payloadcms/translations': 3.0.0-alpha.3
body-scroll-lock: 4.0.0-beta.0
bson-objectid: 2.0.4
date-fns: 2.30.0
@ -1444,7 +1444,7 @@ packages:
md5: 2.3.0
next: 14.1.1-canary.26(react-dom@18.2.0)(react@18.2.0)(sass@1.71.1)
object-to-formdata: 4.5.1
payload: 3.0.0-alpha.2
payload: 3.0.0-alpha.3
qs: 6.11.2
react: 18.2.0
react-animate-height: 2.1.2(react-dom@18.2.0)(react@18.2.0)
@ -4632,12 +4632,12 @@ packages:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
/payload@3.0.0-alpha.2:
resolution: {integrity: sha512-HcrRGUhSzGkFT3COGjuPdCrV/a173x4ImoGyayQl6ZztvFbOxQz1khksLSEWJLakY45UZOSw/CeP2bG2HLWWnw==}
/payload@3.0.0-alpha.3:
resolution: {integrity: sha512-kKBWhB4OCG0c45pcfxDWiSuABalxsckE8RULcJ4lGGfzN9SzZh6KGvtMB4DMdfppN1sEI1XlfRnz46rl7oWXIQ==}
engines: {node: '>=18.17.0'}
hasBin: true
dependencies:
'@payloadcms/translations': 3.0.0-alpha.2
'@payloadcms/translations': 3.0.0-alpha.3
bson-objectid: 2.0.4
conf: 10.2.0
console-table-printer: 2.11.2