"with-vercel-website" template does not save page Hero Type correctly (its value is undefined). Type always defaults to 'lowImpact'.
Describe the Bug
In the config.ts, the Hero type should be saved correctly accordingly to what is set in the admin dashboard. Unfortunately, the value is lost somewhere this road and ends up being undefined to which it defaults to 'lowImpact'. This makes it that the hero image and links do not display on the homepage.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/tree/main/templates/with-vercel-website
Reproduction Steps
Follow the steps in the README file: First clone the repo if you have not done so already cd my-project && cp .env.example .env to copy the example environment variables. You'll need to add the POSTGRES_URL and BLOB_READ_WRITE_TOKEN from your Vercel project to your .env if you want to use Vercel Blob and the Neon database that was created for you. pnpm install && pnpm dev to install dependencies and start the dev server open http://localhost:3000 to open the app in your browser
Which area(s) are affected? (Select all that apply)
db-vercel-postgres, area: core
Environment Info
Binaries:
Node: 22.2.0
npm: 10.7.0
Yarn: N/A
pnpm: 9.14.4
Relevant Packages:
payload: 3.2.2
next: 15.0.3
@payloadcms/email-nodemailer: 3.2.2
@payloadcms/graphql: 3.2.2
@payloadcms/live-preview: 3.2.2
@payloadcms/live-preview-react: 3.2.2
@payloadcms/next/utilities: 3.2.2
@payloadcms/payload-cloud: 3.2.2
@payloadcms/plugin-cloud-storage: 3.2.2
@payloadcms/plugin-form-builder: 3.2.2
@payloadcms/plugin-nested-docs: 3.2.2
@payloadcms/plugin-redirects: 3.2.2
@payloadcms/plugin-search: 3.2.2
@payloadcms/plugin-seo: 3.2.2
@payloadcms/richtext-lexical: 3.2.2
@payloadcms/storage-vercel-blob: 3.2.2
@payloadcms/translations: 3.2.2
@payloadcms/ui/shared: 3.2.2
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 22.6.0: Mon Apr 22 20:54:28 PDT 2024; root:xnu-8796.141.3.705.2~1/RELEASE_X86_64
Available memory (MB): 16384
Available CPU cores: 8