Skip to content

Commit c75c6ce

Browse files
authored
chore(templates): update missing changes in vercel website template (#10827)
This PR migrates some changes that had been made to the website template and had not been ported to the website template with vercel. Ideally, so that this does not happen again in the future and we do not have to do this manually, we could have a script in CI.
1 parent 52f86c7 commit c75c6ce

File tree

38 files changed

+8288
-3466
lines changed

38 files changed

+8288
-3466
lines changed

templates/blank/pnpm-lock.yaml

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

templates/blank/src/payload-types.ts

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,17 @@ export interface Config {
1313
collections: {
1414
users: User;
1515
media: Media;
16-
'payload-locked-documents': PayloadLockedDocument;
1716
'payload-preferences': PayloadPreference;
1817
'payload-migrations': PayloadMigration;
1918
};
20-
collectionsJoins: {};
21-
collectionsSelect: {
22-
users: UsersSelect<false> | UsersSelect<true>;
23-
media: MediaSelect<false> | MediaSelect<true>;
24-
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
25-
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
26-
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
27-
};
2819
db: {
2920
defaultIDType: string;
3021
};
3122
globals: {};
32-
globalsSelect: {};
3323
locale: null;
3424
user: User & {
3525
collection: 'users';
3626
};
37-
jobs: {
38-
tasks: unknown;
39-
workflows: unknown;
40-
};
4127
}
4228
export interface UserAuthOperations {
4329
forgotPassword: {
@@ -93,29 +79,6 @@ export interface Media {
9379
focalX?: number | null;
9480
focalY?: number | null;
9581
}
96-
/**
97-
* This interface was referenced by `Config`'s JSON-Schema
98-
* via the `definition` "payload-locked-documents".
99-
*/
100-
export interface PayloadLockedDocument {
101-
id: string;
102-
document?:
103-
| ({
104-
relationTo: 'users';
105-
value: string | User;
106-
} | null)
107-
| ({
108-
relationTo: 'media';
109-
value: string | Media;
110-
} | null);
111-
globalSlug?: string | null;
112-
user: {
113-
relationTo: 'users';
114-
value: string | User;
115-
};
116-
updatedAt: string;
117-
createdAt: string;
118-
}
11982
/**
12083
* This interface was referenced by `Config`'s JSON-Schema
12184
* via the `definition` "payload-preferences".
@@ -150,71 +113,6 @@ export interface PayloadMigration {
150113
updatedAt: string;
151114
createdAt: string;
152115
}
153-
/**
154-
* This interface was referenced by `Config`'s JSON-Schema
155-
* via the `definition` "users_select".
156-
*/
157-
export interface UsersSelect<T extends boolean = true> {
158-
updatedAt?: T;
159-
createdAt?: T;
160-
email?: T;
161-
resetPasswordToken?: T;
162-
resetPasswordExpiration?: T;
163-
salt?: T;
164-
hash?: T;
165-
loginAttempts?: T;
166-
lockUntil?: T;
167-
}
168-
/**
169-
* This interface was referenced by `Config`'s JSON-Schema
170-
* via the `definition` "media_select".
171-
*/
172-
export interface MediaSelect<T extends boolean = true> {
173-
alt?: T;
174-
updatedAt?: T;
175-
createdAt?: T;
176-
url?: T;
177-
thumbnailURL?: T;
178-
filename?: T;
179-
mimeType?: T;
180-
filesize?: T;
181-
width?: T;
182-
height?: T;
183-
focalX?: T;
184-
focalY?: T;
185-
}
186-
/**
187-
* This interface was referenced by `Config`'s JSON-Schema
188-
* via the `definition` "payload-locked-documents_select".
189-
*/
190-
export interface PayloadLockedDocumentsSelect<T extends boolean = true> {
191-
document?: T;
192-
globalSlug?: T;
193-
user?: T;
194-
updatedAt?: T;
195-
createdAt?: T;
196-
}
197-
/**
198-
* This interface was referenced by `Config`'s JSON-Schema
199-
* via the `definition` "payload-preferences_select".
200-
*/
201-
export interface PayloadPreferencesSelect<T extends boolean = true> {
202-
user?: T;
203-
key?: T;
204-
value?: T;
205-
updatedAt?: T;
206-
createdAt?: T;
207-
}
208-
/**
209-
* This interface was referenced by `Config`'s JSON-Schema
210-
* via the `definition` "payload-migrations_select".
211-
*/
212-
export interface PayloadMigrationsSelect<T extends boolean = true> {
213-
name?: T;
214-
batch?: T;
215-
updatedAt?: T;
216-
createdAt?: T;
217-
}
218116
/**
219117
* This interface was referenced by `Config`'s JSON-Schema
220118
* via the `definition` "auth".

0 commit comments

Comments
 (0)