chore(templates): bump alpha deps and next app changes
This commit is contained in:
@@ -164,7 +164,7 @@ async function installDeps(projectDir: string) {
|
||||
'payload',
|
||||
'@payloadcms/db-mongodb',
|
||||
'@payloadcms/next',
|
||||
'@payloadcms/richtext-slate',
|
||||
'@payloadcms/richtext-lexical',
|
||||
].map((pkg) => `${pkg}@alpha`)
|
||||
|
||||
let exitCode = 0
|
||||
@@ -206,7 +206,7 @@ function findOrCreatePayloadConfig(projectDir: string) {
|
||||
const defaultConfig = `import path from "path";
|
||||
|
||||
import { mongooseAdapter } from "@payloadcms/db-mongodb"; // database-adapter-import
|
||||
import { slateEditor } from "@payloadcms/richtext-slate"; // editor-import
|
||||
import { lexicalEditor } from "@payloadcms/richtext-lexical"; // editor-import
|
||||
import { buildConfig } from "payload/config";
|
||||
|
||||
export default buildConfig({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import withPayload from '@payloadcms/next/withPayload'
|
||||
import { withPayload } from '@payloadcms/next/withPayload'
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
"node": ">=18.19.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@payloadcms/db-mongodb": "3.0.0-alpha.48",
|
||||
"@payloadcms/next": "3.0.0-alpha.48",
|
||||
"@payloadcms/plugin-cloud": "3.0.0-alpha.48",
|
||||
"@payloadcms/richtext-slate": "3.0.0-alpha.48",
|
||||
"@payloadcms/db-mongodb": "alpha",
|
||||
"@payloadcms/next": "alpha",
|
||||
"@payloadcms/plugin-cloud": "alpha",
|
||||
"@payloadcms/richtext-lexical": "alpha",
|
||||
"cross-env": "^7.0.3",
|
||||
"next": "14.2.0-canary.7",
|
||||
"payload": "3.0.0-alpha.48",
|
||||
"next": "14.2.0-canary.23",
|
||||
"payload": "alpha",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"sharp": "0.32.6"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||
import config from '@payload-config'
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import { RootPage } from '@payloadcms/next/views/Root/index'
|
||||
import { RootPage } from '@payloadcms/next/views'
|
||||
|
||||
type Args = {
|
||||
params: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||
import configPromise from '@payload-config'
|
||||
import '@payloadcms/next/css'
|
||||
import { RootLayout } from '@payloadcms/next/layouts/Root/index'
|
||||
import { RootLayout } from '@payloadcms/next/layouts'
|
||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||
import React from 'react'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user