Skip to content

Commit

Permalink
templates: add @ts-ignore in seed to allow initial build on vercel (p…
Browse files Browse the repository at this point in the history
…ayloadcms#10889)

### What?
Add @ts-ignore in seed to allow initial build on vercel

### Why?
The 1-click setup for the vercel-website template doesn't work because
the initial build fails on vercel

### How?
Added some ts-ignore, similarly to the main payload repo
  • Loading branch information
francodgstn authored Jan 30, 2025
1 parent 35e5be8 commit 2043b4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const contact: Partial<Page> = {
{
blockType: 'formBlock',
enableIntro: true,
// @ts-ignore
form: '{{CONTACT_FORM_ID}}',
introContent: {
root: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const homeStatic: Page = {
title: 'Payload Website Template',
},
title: 'Home',
// @ts-ignore
id: '',
layout: [],
updatedAt: '',
Expand Down
3 changes: 3 additions & 0 deletions templates/with-vercel-website/src/endpoints/seed/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const home: RequiredDataFromCollectionSlug<'pages'> = {
},
},
],
// @ts-ignore
media: '{{IMAGE_1}}',
richText: {
root: {
Expand Down Expand Up @@ -501,6 +502,7 @@ export const home: RequiredDataFromCollectionSlug<'pages'> = {
{
blockName: 'Media Block',
blockType: 'mediaBlock',
// @ts-ignore
media: '{{IMAGE_2}}',
},
{
Expand Down Expand Up @@ -657,6 +659,7 @@ export const home: RequiredDataFromCollectionSlug<'pages'> = {
],
meta: {
description: 'An open-source website built with Payload and Next.js.',
// @ts-ignore
image: '{{IMAGE_1}}',
title: 'Payload Website Template',
},
Expand Down

0 comments on commit 2043b4a

Please sign in to comment.