Skip to content

Commit 76ba2df

Browse files
authored
templates: remove payload cloud template, remove cloud plugin from templates (#14479)
As payload cloud no longer allows new projects/sign-ups, there is no point in maintaining the payload cloud template anymore. This PR does the following: - removes the `with-payload-cloud` template - removes the `@payloadcms/payload-cloud` plugin from all existing templates
1 parent 648021c commit 76ba2df

File tree

69 files changed

+888
-1169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+888
-1169
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,6 @@ jobs:
549549
- template: website
550550
database: mongodb
551551

552-
- template: with-payload-cloud
553-
database: mongodb
554-
555552
- template: with-vercel-mongodb
556553
database: mongodb
557554

@@ -592,7 +589,7 @@ jobs:
592589
- name: Start PostgreSQL
593590
uses: CasperWA/postgresql-action@v1.2
594591
with:
595-
postgresql version: '14' # See https://hub.docker.com/_/postgres for available versions
592+
postgresql version: "14" # See https://hub.docker.com/_/postgres for available versions
596593
postgresql db: ${{ env.POSTGRES_DB }}
597594
postgresql user: ${{ env.POSTGRES_USER }}
598595
postgresql password: ${{ env.POSTGRES_PASSWORD }}
@@ -754,4 +751,4 @@ jobs:
754751
if: github.event.pull_request.head.repo.fork == false
755752
uses: exoego/esbuild-bundle-analyzer@v1
756753
with:
757-
metafiles: 'packages/payload/meta_index.json,packages/payload/meta_shared.json,packages/ui/meta_client.json,packages/ui/meta_shared.json,packages/next/meta_index.json,packages/richtext-lexical/meta_client.json'
754+
metafiles: "packages/payload/meta_index.json,packages/payload/meta_shared.json,packages/ui/meta_client.json,packages/ui/meta_shared.json,packages/next/meta_index.json,packages/richtext-lexical/meta_client.json"

pnpm-lock.yaml

Lines changed: 32 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/_template/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"dependencies": {
2121
"@payloadcms/db-mongodb": "latest",
2222
"@payloadcms/next": "latest",
23-
"@payloadcms/payload-cloud": "latest",
2423
"@payloadcms/richtext-lexical": "latest",
2524
"@payloadcms/ui": "latest",
2625
"cross-env": "^7.0.3",

templates/blank/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"dependencies": {
2121
"@payloadcms/db-mongodb": "workspace:*",
2222
"@payloadcms/next": "workspace:*",
23-
"@payloadcms/payload-cloud": "workspace:*",
2423
"@payloadcms/richtext-lexical": "workspace:*",
2524
"@payloadcms/ui": "workspace:*",
2625
"cross-env": "^7.0.3",

templates/blank/src/payload-types.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface Config {
6969
collections: {
7070
users: User;
7171
media: Media;
72+
'payload-kv': PayloadKv;
7273
'payload-locked-documents': PayloadLockedDocument;
7374
'payload-preferences': PayloadPreference;
7475
'payload-migrations': PayloadMigration;
@@ -77,6 +78,7 @@ export interface Config {
7778
collectionsSelect: {
7879
users: UsersSelect<false> | UsersSelect<true>;
7980
media: MediaSelect<false> | MediaSelect<true>;
81+
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
8082
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
8183
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
8284
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
@@ -156,6 +158,23 @@ export interface Media {
156158
focalX?: number | null;
157159
focalY?: number | null;
158160
}
161+
/**
162+
* This interface was referenced by `Config`'s JSON-Schema
163+
* via the `definition` "payload-kv".
164+
*/
165+
export interface PayloadKv {
166+
id: string;
167+
key: string;
168+
data:
169+
| {
170+
[k: string]: unknown;
171+
}
172+
| unknown[]
173+
| string
174+
| number
175+
| boolean
176+
| null;
177+
}
159178
/**
160179
* This interface was referenced by `Config`'s JSON-Schema
161180
* via the `definition` "payload-locked-documents".
@@ -253,6 +272,14 @@ export interface MediaSelect<T extends boolean = true> {
253272
focalX?: T;
254273
focalY?: T;
255274
}
275+
/**
276+
* This interface was referenced by `Config`'s JSON-Schema
277+
* via the `definition` "payload-kv_select".
278+
*/
279+
export interface PayloadKvSelect<T extends boolean = true> {
280+
key?: T;
281+
data?: T;
282+
}
256283
/**
257284
* This interface was referenced by `Config`'s JSON-Schema
258285
* via the `definition` "payload-locked-documents_select".

templates/blank/src/payload.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// storage-adapter-import-placeholder
22
import { mongooseAdapter } from '@payloadcms/db-mongodb' // database-adapter-import
3-
import { payloadCloudPlugin } from '@payloadcms/payload-cloud'
43
import { lexicalEditor } from '@payloadcms/richtext-lexical'
54
import path from 'path'
65
import { buildConfig } from 'payload'
@@ -33,7 +32,6 @@ export default buildConfig({
3332
// database-adapter-config-end
3433
sharp,
3534
plugins: [
36-
payloadCloudPlugin(),
3735
// storage-adapter-placeholder
3836
],
3937
})

templates/ecommerce/src/payload-types.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export interface Config {
8686
carts: Cart;
8787
orders: Order;
8888
transactions: Transaction;
89+
'payload-kv': PayloadKv;
8990
'payload-locked-documents': PayloadLockedDocument;
9091
'payload-preferences': PayloadPreference;
9192
'payload-migrations': PayloadMigration;
@@ -118,6 +119,7 @@ export interface Config {
118119
carts: CartsSelect<false> | CartsSelect<true>;
119120
orders: OrdersSelect<false> | OrdersSelect<true>;
120121
transactions: TransactionsSelect<false> | TransactionsSelect<true>;
122+
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
121123
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
122124
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
123125
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
@@ -1030,6 +1032,23 @@ export interface FormSubmission {
10301032
updatedAt: string;
10311033
createdAt: string;
10321034
}
1035+
/**
1036+
* This interface was referenced by `Config`'s JSON-Schema
1037+
* via the `definition` "payload-kv".
1038+
*/
1039+
export interface PayloadKv {
1040+
id: string;
1041+
key: string;
1042+
data:
1043+
| {
1044+
[k: string]: unknown;
1045+
}
1046+
| unknown[]
1047+
| string
1048+
| number
1049+
| boolean
1050+
| null;
1051+
}
10331052
/**
10341053
* This interface was referenced by `Config`'s JSON-Schema
10351054
* via the `definition` "payload-locked-documents".
@@ -1720,6 +1739,14 @@ export interface TransactionsSelect<T extends boolean = true> {
17201739
updatedAt?: T;
17211740
createdAt?: T;
17221741
}
1742+
/**
1743+
* This interface was referenced by `Config`'s JSON-Schema
1744+
* via the `definition` "payload-kv_select".
1745+
*/
1746+
export interface PayloadKvSelect<T extends boolean = true> {
1747+
key?: T;
1748+
data?: T;
1749+
}
17231750
/**
17241751
* This interface was referenced by `Config`'s JSON-Schema
17251752
* via the `definition` "payload-locked-documents_select".

templates/website/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"@payloadcms/db-mongodb": "workspace:*",
2727
"@payloadcms/live-preview-react": "workspace:*",
2828
"@payloadcms/next": "workspace:*",
29-
"@payloadcms/payload-cloud": "workspace:*",
3029
"@payloadcms/plugin-form-builder": "workspace:*",
3130
"@payloadcms/plugin-nested-docs": "workspace:*",
3231
"@payloadcms/plugin-redirects": "workspace:*",

templates/website/src/app/(payload)/admin/importMap.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ import { PreviewComponent as PreviewComponent_a8a977ebc872c5d5ea7ee689724c0860 }
1717
import { SlugField as SlugField_3817bf644402e67bfe6577f60ef982de } from '@payloadcms/ui'
1818
import { HorizontalRuleFeatureClient as HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
1919
import { BlocksFeatureClient as BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864 } from '@payloadcms/richtext-lexical/client'
20+
import { FolderTableCell as FolderTableCell_ab83ff7e88da8d3530831f296ec4756a } from '@payloadcms/ui/rsc'
21+
import { FolderField as FolderField_ab83ff7e88da8d3530831f296ec4756a } from '@payloadcms/ui/rsc'
2022
import { LinkToDoc as LinkToDoc_aead06e4cbf6b2620c5c51c9ab283634 } from '@payloadcms/plugin-search/client'
2123
import { ReindexButton as ReindexButton_aead06e4cbf6b2620c5c51c9ab283634 } from '@payloadcms/plugin-search/client'
24+
import { FolderTypeField as FolderTypeField_3817bf644402e67bfe6577f60ef982de } from '@payloadcms/ui'
2225
import { RowLabel as RowLabel_ec255a65fa6fa8d1faeb09cf35284224 } from '@/Header/RowLabel'
2326
import { RowLabel as RowLabel_1f6ff6ff633e3695d348f4f3c58f1466 } from '@/Footer/RowLabel'
2427
import { default as default_1a7510af427896d367a49dbf838d2de6 } from '@/components/BeforeDashboard'
@@ -62,8 +65,11 @@ export const importMap = {
6265
HorizontalRuleFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
6366
'@payloadcms/richtext-lexical/client#BlocksFeatureClient':
6467
BlocksFeatureClient_e70f5e05f09f93e00b997edb1ef0c864,
68+
'@payloadcms/ui/rsc#FolderTableCell': FolderTableCell_ab83ff7e88da8d3530831f296ec4756a,
69+
'@payloadcms/ui/rsc#FolderField': FolderField_ab83ff7e88da8d3530831f296ec4756a,
6570
'@payloadcms/plugin-search/client#LinkToDoc': LinkToDoc_aead06e4cbf6b2620c5c51c9ab283634,
6671
'@payloadcms/plugin-search/client#ReindexButton': ReindexButton_aead06e4cbf6b2620c5c51c9ab283634,
72+
'@payloadcms/ui#FolderTypeField': FolderTypeField_3817bf644402e67bfe6577f60ef982de,
6773
'@/Header/RowLabel#RowLabel': RowLabel_ec255a65fa6fa8d1faeb09cf35284224,
6874
'@/Footer/RowLabel#RowLabel': RowLabel_1f6ff6ff633e3695d348f4f3c58f1466,
6975
'@/components/BeforeDashboard#default': default_1a7510af427896d367a49dbf838d2de6,

0 commit comments

Comments
 (0)