fix(admin): register HomePreviewEditor in importMap
All checks were successful
Build & Deploy to K3s / build-and-deploy (push) Successful in 3m0s

The importMap is static and committed — it doesn't auto-detect new
Payload admin components at build time, which is why the homepage global
rendered blank (getFromImportMap: PayloadComponent not found).

Regenerated with `payload generate:importmap` and added the same command
to the Dockerfile so any future admin component wires up automatically.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ordinarthur 2026-04-21 19:18:09 +02:00
parent b6fd89978e
commit 1b5664e826
2 changed files with 6 additions and 2 deletions

View File

@ -27,6 +27,8 @@ ENV DATABASE_URL=postgres://placeholder:placeholder@localhost:5432/placeholder
ENV STRIPE_SECRET_KEY=sk_test_abcdefghijklmnopqrstuvwxyz1234567890 ENV STRIPE_SECRET_KEY=sk_test_abcdefghijklmnopqrstuvwxyz1234567890
ENV NEXT_PUBLIC_SERVER_URL=https://rebours.studio ENV NEXT_PUBLIC_SERVER_URL=https://rebours.studio
# Regenerate Payload importMap so any newly referenced admin components are wired up
RUN pnpm payload generate:importmap
RUN pnpm build RUN pnpm build
# Trim dev deps to shrink the runtime image # Trim dev deps to shrink the runtime image

View File

@ -1,10 +1,12 @@
import { LinkToDoc as LinkToDoc_2e9be70cd13299dd4a11a5bd739a5a3c } from '@payloadcms/plugin-stripe/client'
import { default as default_7060fcf8de405c49f267d6b95f29dcb7 } from '@/components/admin/ProductPreviewEditor' import { default as default_7060fcf8de405c49f267d6b95f29dcb7 } from '@/components/admin/ProductPreviewEditor'
import { LinkToDoc as LinkToDoc_2e9be70cd13299dd4a11a5bd739a5a3c } from '@payloadcms/plugin-stripe/client'
import { default as default_6eaf42e1c65be845728563a2a0129d3a } from '@/components/admin/HomePreviewEditor'
import { CollectionCards as CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 } from '@payloadcms/next/rsc' import { CollectionCards as CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 } from '@payloadcms/next/rsc'
/** @type import('payload').ImportMap */ /** @type import('payload').ImportMap */
export const importMap = { export const importMap = {
"@payloadcms/plugin-stripe/client#LinkToDoc": LinkToDoc_2e9be70cd13299dd4a11a5bd739a5a3c,
"@/components/admin/ProductPreviewEditor#default": default_7060fcf8de405c49f267d6b95f29dcb7, "@/components/admin/ProductPreviewEditor#default": default_7060fcf8de405c49f267d6b95f29dcb7,
"@payloadcms/plugin-stripe/client#LinkToDoc": LinkToDoc_2e9be70cd13299dd4a11a5bd739a5a3c,
"@/components/admin/HomePreviewEditor#default": default_6eaf42e1c65be845728563a2a0129d3a,
"@payloadcms/next/rsc#CollectionCards": CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1 "@payloadcms/next/rsc#CollectionCards": CollectionCards_f9c02e79a4aed9a3924487c0cd4cafb1
} }