Files
payloadcms/test/live-preview/shared.ts
Jacob Fletcher e095222a9c fix(next): does not format top-level domains within admin.preview or livePreview.url functions (#9831)
Fixes #9830. Continuation of #9755 and #9746. Instead of automatically
appending TLDs to the `admin.preview` and the `livePreview.url` URLs, we
should instead ensure that `req` is passed through these functions, so
that you can have full control over the format of this URL without
Payload imposing any of its own formatting.
2024-12-09 11:54:20 -05:00

27 lines
626 B
TypeScript

export const pagesSlug = 'pages'
export const tenantsSlug = 'tenants'
export const ssrPagesSlug = 'ssr'
export const ssrAutosavePagesSlug = 'ssr-autosave'
export const postsSlug = 'posts'
export const mediaSlug = 'media'
export const categoriesSlug = 'categories'
export const usersSlug = 'users'
export const mobileBreakpoint = {
label: 'Mobile',
name: 'mobile',
width: 375,
height: 667,
}
export const desktopBreakpoint = {
label: 'Desktop',
name: 'desktop',
width: 1920,
height: 1080,
}
export const renderedPageTitleID = 'rendered-page-title'
export const localizedPageTitleID = 'localized-page-title'