docs: properly capitalize SQLite and Next.js (#9848)
This commit is contained in:
@@ -12,7 +12,7 @@ Payload requires the following software:
|
|||||||
|
|
||||||
- Any JavaScript package manager (pnpm, npm, or yarn - pnpm is preferred)
|
- Any JavaScript package manager (pnpm, npm, or yarn - pnpm is preferred)
|
||||||
- Node.js version 20.9.0+
|
- Node.js version 20.9.0+
|
||||||
- Any [compatible database](/docs/database/overview) (MongoDB, Postgres or Sqlite)
|
- Any [compatible database](/docs/database/overview) (MongoDB, Postgres or SQLite)
|
||||||
|
|
||||||
<Banner type="warning">
|
<Banner type="warning">
|
||||||
<strong>Important:</strong>
|
<strong>Important:</strong>
|
||||||
|
|||||||
@@ -307,13 +307,13 @@ available:
|
|||||||
### Auth
|
### Auth
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// If you're using nextjs, you'll have to import headers from next/headers, like so:
|
// If you're using Next.js, you'll have to import headers from next/headers, like so:
|
||||||
// import { headers as nextHeaders } from 'next/headers'
|
// import { headers as nextHeaders } from 'next/headers'
|
||||||
|
|
||||||
// you'll also have to await headers inside your function, or component, like so:
|
// you'll also have to await headers inside your function, or component, like so:
|
||||||
// const headers = await nextHeaders()
|
// const headers = await nextHeaders()
|
||||||
|
|
||||||
// If you're using payload outside of NextJS, you'll have to provide headers accordingly.
|
// If you're using payload outside of Next.js, you'll have to provide headers accordingly.
|
||||||
|
|
||||||
// result will be formatted as follows:
|
// result will be formatted as follows:
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Payload 3.0 requires a set of auto-generated files that you will need to bring i
|
|||||||
|
|
||||||
For more details, see the [Documentation](https://payloadcms.com/docs/getting-started/installation).
|
For more details, see the [Documentation](https://payloadcms.com/docs/getting-started/installation).
|
||||||
|
|
||||||
1. **Install new dependencies of payload, next.js and react**:
|
1. **Install new dependencies of Payload, Next.js and React**:
|
||||||
|
|
||||||
Refer to the package.json file made in the create-payload-app, including peerDependencies, devDependencies, and dependencies. The core package and plugins require all versions to be synced. Previously, on 2.x it was possible to be running the latest version of payload 2.x with an older version of db-mongodb for example. This is no longer the case.
|
Refer to the package.json file made in the create-payload-app, including peerDependencies, devDependencies, and dependencies. The core package and plugins require all versions to be synced. Previously, on 2.x it was possible to be running the latest version of payload 2.x with an older version of db-mongodb for example. This is no longer the case.
|
||||||
|
|
||||||
@@ -412,7 +412,7 @@ For more details, see the [Documentation](https://payloadcms.com/docs/getting-st
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
1. The `./src/public` directory is now located directly at root level `./public` [see nextJS docs for details](https://nextjs.org/docs/pages/building-your-application/optimizing/static-assets)
|
1. The `./src/public` directory is now located directly at root level `./public` [see Next.js docs for details](https://nextjs.org/docs/pages/building-your-application/optimizing/static-assets)
|
||||||
|
|
||||||
## Custom Components
|
## Custom Components
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user