You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(templates): strengthen types in preview url gen (#14947)
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.
|**`locale`**| The current locale of the Document being edited. |
55
+
|**`req`**| The Payload Request object. |
56
+
|**`token`**| The JWT token of the currently authenticated user. |
57
57
58
58
If your application requires a fully qualified URL, such as within deploying to Vercel Preview Deployments, you can use the `req` property to build this URL:
59
59
@@ -108,7 +108,7 @@ Then, create an API route that verifies the preview secret, authenticates the us
0 commit comments