(workspaceId: string, previewToken?: string | null)
| 10 | } |
| 11 | |
| 12 | export function buildPreviewPathPrefix(workspaceId: string, previewToken?: string | null): string { |
| 13 | const encodedWorkspaceId = encodeURIComponent(workspaceId); |
| 14 | if (!previewToken) return `${PREVIEW_PREFIX}/${encodedWorkspaceId}`; |
| 15 | return `${PREVIEW_PREFIX}/${encodedWorkspaceId}/${PREVIEW_ACCESS_TOKEN_MARKER}/${encodeURIComponent(previewToken)}`; |
| 16 | } |
| 17 | |
| 18 | function isPreviewAccessTokenSegment(segment: string): boolean { |
| 19 | return segment.startsWith(`${PREVIEW_ACCESS_TOKEN_VERSION}.`); |
no outgoing calls
no test coverage detected