Skip to content

chore(templates): strengthen types in preview url gen#14947

Merged
jacobsfletch merged 1 commit into
mainfrom
chore/templates-preview-url
Apr 17, 2026
Merged

chore(templates): strengthen types in preview url gen#14947
jacobsfletch merged 1 commit into
mainfrom
chore/templates-preview-url

Conversation

@jacobsfletch

@jacobsfletch jacobsfletch commented Dec 16, 2025

Copy link
Copy Markdown
Member

The templates have no safety between the frontends entering and exiting draft mode, and the endpoints that handle those requests.

We need to ensure that the search params that the endpoint relies on, e.g. path, are typed in the requests that send them.

@github-actions

Copy link
Copy Markdown
Contributor

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@jacobsfletch jacobsfletch marked this pull request as ready for review April 17, 2026 14:29
@jacobsfletch jacobsfletch merged commit fcbc987 into main Apr 17, 2026
25 checks passed
@jacobsfletch jacobsfletch deleted the chore/templates-preview-url branch April 17, 2026 14:33
milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
The templates have no safety between the frontends entering and exiting
draft mode, and the endpoints that handle those requests.

We need to ensure that the search params that the endpoint relies on,
e.g. `path`, are typed in the requests that send them.
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.84.0

felipepalazzo added a commit to felipepalazzo/payload that referenced this pull request Apr 23, 2026
Fixes payloadcms#16361. Corrects stale route group reference introduced in payloadcms#14947
and updates the preview prefix map to match the `products` collection
(replacing the leftover `posts` entry that has no corresponding route).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants