Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/database/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ A common set of scripts in a `package.json`, set up to run migrations in CI, mig
```js
"scripts": {
// For running in dev mode
"dev": "next dev --turbo --no-server-fast-refresh",
"dev": "next dev",

// To build your Next + Payload app for production
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion docs/performance/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ In Next.js 15, add `--turbo` to your dev script to significantly speed up your l
```json
{
"scripts": {
"dev": "next dev --turbo --no-server-fast-refresh"
"dev": "next dev --turbo"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion templates/_template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand Down
2 changes: 1 addition & 1 deletion templates/blank/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=\"--no-deprecation --max-old-space-size=8000\" next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand Down
2 changes: 1 addition & 1 deletion templates/ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=\"--no-deprecation --max-old-space-size=8000\" next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"dev:prod": "cross-env NODE_OPTIONS=--no-deprecation rm -rf .next && pnpm build && pnpm start",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand Down
2 changes: 1 addition & 1 deletion templates/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build:types": "tsc --outDir dist --rootDir ./src",
"clean": "rimraf {dist,*.tsbuildinfo}",
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"dev": "next dev dev --turbo --no-server-fast-refresh",
"dev": "next dev dev --turbo",
"dev:generate-importmap": "pnpm dev:payload generate:importmap",
"dev:generate-types": "pnpm dev:payload generate:types",
"dev:payload": "cross-env PAYLOAD_CONFIG_PATH=./dev/payload.config.ts payload",
Expand Down
2 changes: 1 addition & 1 deletion templates/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"dev:prod": "cross-env NODE_OPTIONS=--no-deprecation rm -rf .next && pnpm build && pnpm start",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand Down
8 changes: 4 additions & 4 deletions templates/website/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ export const Card: React.FC<{
{categories?.map((category, index) => {
if (typeof category === 'object') {
const { title: titleFromCategory } = category

const categoryTitle = titleFromCategory || 'Untitled category'

const isLast = index === categories.length - 1

return (
<Fragment key={index}>
{categoryTitle}
{!isLast && <Fragment>, &nbsp;</Fragment>}
</Fragment>
)
}

return null
})}
</div>
Expand Down
14 changes: 7 additions & 7 deletions templates/with-cloudflare-d1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"deploy": "pnpm run deploy:database && pnpm run deploy:app",
"deploy:app": "opennextjs-cloudflare build --env=$CLOUDFLARE_ENV && opennextjs-cloudflare deploy --env=$CLOUDFLARE_ENV",
"deploy:database": "cross-env NODE_ENV=production PAYLOAD_SECRET=ignore payload migrate && wrangler d1 execute D1 --command 'PRAGMA optimize' --env=$CLOUDFLARE_ENV --remote",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && rm -rf .open-next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "pnpm run generate:types:cloudflare && pnpm run generate:types:payload",
Expand All @@ -26,16 +26,16 @@
},
"dependencies": {
"@opennextjs/cloudflare": "^1.11.0",
"@payloadcms/db-d1-sqlite": "3.80.0",
"@payloadcms/next": "3.80.0",
"@payloadcms/richtext-lexical": "3.80.0",
"@payloadcms/storage-r2": "3.80.0",
"@payloadcms/ui": "3.80.0",
"@payloadcms/db-d1-sqlite": "3.82.0",
"@payloadcms/next": "3.82.0",
"@payloadcms/richtext-lexical": "3.82.0",
"@payloadcms/storage-r2": "3.82.0",
"@payloadcms/ui": "3.82.0",
"cross-env": "^7.0.3",
"dotenv": "16.4.7",
"graphql": "^16.8.1",
"next": "15.4.11",
"payload": "3.80.0",
"payload": "3.82.0",
"react": "19.2.1",
"react-dom": "19.2.1"
},
Expand Down
12 changes: 6 additions & 6 deletions templates/with-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand All @@ -19,17 +19,17 @@
"ci": "payload migrate && pnpm build"
},
"dependencies": {
"@payloadcms/next": "3.80.0",
"@payloadcms/richtext-lexical": "3.80.0",
"@payloadcms/ui": "3.80.0",
"@payloadcms/next": "3.82.0",
"@payloadcms/richtext-lexical": "3.82.0",
"@payloadcms/ui": "3.82.0",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "16.2.2",
"payload": "3.80.0",
"payload": "3.82.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"sharp": "0.34.2",
"@payloadcms/db-postgres": "3.80.0"
"@payloadcms/db-postgres": "3.82.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,6 @@
"tables": {},
"columns": {}
},
"id": "fbb8e87d-807f-4fff-89bb-546a2d6d458d",
"id": "6db89132-a786-40da-90be-0cab4dd2189a",
"prevId": "00000000-0000-0000-0000-000000000000"
}
8 changes: 4 additions & 4 deletions templates/with-postgres/src/migrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as migration_20260322_233123_initial from './20260322_233123_initial'
import * as migration_20260408_163830_initial from './20260408_163830_initial'

export const migrations = [
{
up: migration_20260322_233123_initial.up,
down: migration_20260322_233123_initial.down,
name: '20260322_233123_initial',
up: migration_20260408_163830_initial.up,
down: migration_20260408_163830_initial.down,
name: '20260408_163830_initial',
},
]
16 changes: 8 additions & 8 deletions templates/with-vercel-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand All @@ -18,17 +18,17 @@
"test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts"
},
"dependencies": {
"@payloadcms/next": "3.80.0",
"@payloadcms/richtext-lexical": "3.80.0",
"@payloadcms/ui": "3.80.0",
"@payloadcms/next": "3.82.0",
"@payloadcms/richtext-lexical": "3.82.0",
"@payloadcms/ui": "3.82.0",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "16.2.2",
"payload": "3.80.0",
"payload": "3.82.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"@payloadcms/db-mongodb": "3.80.0",
"@payloadcms/storage-vercel-blob": "3.80.0"
"@payloadcms/db-mongodb": "3.82.0",
"@payloadcms/storage-vercel-blob": "3.82.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down Expand Up @@ -57,5 +57,5 @@
"unrs-resolver"
]
},
"packageManager": "pnpm@10.32.1"
"packageManager": "pnpm@10.33.0"
}
16 changes: 8 additions & 8 deletions templates/with-vercel-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand All @@ -19,17 +19,17 @@
"ci": "payload migrate && pnpm build"
},
"dependencies": {
"@payloadcms/next": "3.80.0",
"@payloadcms/richtext-lexical": "3.80.0",
"@payloadcms/ui": "3.80.0",
"@payloadcms/next": "3.82.0",
"@payloadcms/richtext-lexical": "3.82.0",
"@payloadcms/ui": "3.82.0",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "16.2.2",
"payload": "3.80.0",
"payload": "3.82.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"@payloadcms/db-vercel-postgres": "3.80.0",
"@payloadcms/storage-vercel-blob": "3.80.0"
"@payloadcms/db-vercel-postgres": "3.82.0",
"@payloadcms/storage-vercel-blob": "3.82.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down Expand Up @@ -58,5 +58,5 @@
"unrs-resolver"
]
},
"packageManager": "pnpm@10.32.1"
"packageManager": "pnpm@10.33.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,6 @@
"tables": {},
"columns": {}
},
"id": "318ed1b5-c2be-4109-9d3c-8b544cc5ca20",
"id": "9642dfb9-b49e-4397-9e6d-43841102759e",
"prevId": "00000000-0000-0000-0000-000000000000"
}
8 changes: 4 additions & 4 deletions templates/with-vercel-postgres/src/migrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as migration_20260322_233106_initial from './20260322_233106_initial'
import * as migration_20260408_163814_initial from './20260408_163814_initial'

export const migrations = [
{
up: migration_20260322_233106_initial.up,
down: migration_20260322_233106_initial.down,
name: '20260322_233106_initial',
up: migration_20260408_163814_initial.up,
down: migration_20260408_163814_initial.down,
name: '20260408_163814_initial',
},
]
2 changes: 1 addition & 1 deletion templates/with-vercel-website/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"config": "tailwind.config.mjs",
"css": "src/app/(frontend)/globals.css",
"baseColor": "slate",
"cssVariables": true,
Expand Down
30 changes: 15 additions & 15 deletions templates/with-vercel-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --no-server-fast-refresh",
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
"dev:prod": "cross-env NODE_OPTIONS=--no-deprecation rm -rf .next && pnpm build && pnpm start",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
Expand All @@ -23,16 +23,16 @@
"ci": "payload migrate && pnpm build"
},
"dependencies": {
"@payloadcms/admin-bar": "3.80.0",
"@payloadcms/live-preview-react": "3.80.0",
"@payloadcms/next": "3.80.0",
"@payloadcms/plugin-form-builder": "3.80.0",
"@payloadcms/plugin-nested-docs": "3.80.0",
"@payloadcms/plugin-redirects": "3.80.0",
"@payloadcms/plugin-search": "3.80.0",
"@payloadcms/plugin-seo": "3.80.0",
"@payloadcms/richtext-lexical": "3.80.0",
"@payloadcms/ui": "3.80.0",
"@payloadcms/admin-bar": "3.82.0",
"@payloadcms/live-preview-react": "3.82.0",
"@payloadcms/next": "3.82.0",
"@payloadcms/plugin-form-builder": "3.82.0",
"@payloadcms/plugin-nested-docs": "3.82.0",
"@payloadcms/plugin-redirects": "3.82.0",
"@payloadcms/plugin-search": "3.82.0",
"@payloadcms/plugin-seo": "3.82.0",
"@payloadcms/richtext-lexical": "3.82.0",
"@payloadcms/ui": "3.82.0",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-select": "^2.0.0",
Expand All @@ -46,15 +46,15 @@
"lucide-react": "0.563.0",
"next": "16.2.2",
"next-sitemap": "^4.2.3",
"payload": "3.80.0",
"payload": "3.82.0",
"prism-react-renderer": "^2.3.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-hook-form": "7.71.1",
"sharp": "0.34.2",
"tailwind-merge": "^3.4.0",
"@payloadcms/db-vercel-postgres": "3.80.0",
"@payloadcms/storage-vercel-blob": "3.80.0"
"@payloadcms/db-vercel-postgres": "3.82.0",
"@payloadcms/storage-vercel-blob": "3.82.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
Expand Down Expand Up @@ -90,5 +90,5 @@
"unrs-resolver"
]
},
"packageManager": "pnpm@10.32.1"
"packageManager": "pnpm@10.33.0"
}
32 changes: 14 additions & 18 deletions templates/with-vercel-website/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,24 @@ export const Card: React.FC<{
<div className="p-4">
{showCategories && hasCategories && (
<div className="uppercase text-sm mb-4">
{showCategories && hasCategories && (
<div>
{categories?.map((category, index) => {
if (typeof category === 'object') {
const { title: titleFromCategory } = category
{categories?.map((category, index) => {
if (typeof category === 'object') {
const { title: titleFromCategory } = category

const categoryTitle = titleFromCategory || 'Untitled category'
const categoryTitle = titleFromCategory || 'Untitled category'

const isLast = index === categories.length - 1
const isLast = index === categories.length - 1

return (
<Fragment key={index}>
{categoryTitle}
{!isLast && <Fragment>, &nbsp;</Fragment>}
</Fragment>
)
}
return (
<Fragment key={index}>
{categoryTitle}
{!isLast && <Fragment>, &nbsp;</Fragment>}
</Fragment>
)
}

return null
})}
</div>
)}
return null
})}
</div>
)}
{titleToUse && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9181,6 +9181,6 @@
"tables": {},
"columns": {}
},
"id": "33c38257-b688-4641-93ec-3c9802e0b946",
"id": "fc2dab84-4283-4469-bcd2-0fc37af16379",
"prevId": "00000000-0000-0000-0000-000000000000"
}
Loading
Loading