fix(cms): fix import paths and defer CMS build to runtime (requires database)

This commit is contained in:
2026-04-06 14:44:42 +02:00
parent 683b05dbf3
commit f313d6841f
8 changed files with 37 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ import type { Metadata } from "next";
import config from "@payload-config";
import { NotFoundPage, generatePageMetadata } from "@payloadcms/next/views";
import { importMap } from "../importMap.js";
import { importMap } from "../../importMap.js";
type Args = {
params: Promise<{ segments: string[] }>;

View File

@@ -4,7 +4,7 @@ import type { Metadata } from "next";
import config from "@payload-config";
import { RootPage, generatePageMetadata } from "@payloadcms/next/views";
import { importMap } from "../importMap.js";
import { importMap } from "../../importMap.js";
type Args = {
params: Promise<{ segments: string[] }>;