MCPcopy Create free account
hub / github.com/agent-tower/core / rewriteJavaScriptPathLiterals

Function rewriteJavaScriptPathLiterals

packages/server/src/routes/previews.ts:259–265  ·  view source on GitHub ↗
(body: string, prefix: string)

Source from the content-addressed store, hash-verified

257 }>('/api/previews/:workspaceId/sessions/:sessionId/heartbeat', async (request, reply) => {
258 try {
259 if (request.params.sessionId === SAME_ORIGIN_PREVIEW_SESSION_ID) {
260 const target = await previewService.getTarget(request.params.workspaceId);
261 if (!target) {
262 return reply.code(404).send({
263 error: 'Preview target is not configured',
264 code: 'PREVIEW_NOT_CONFIGURED',
265 });
266 }
267 return sameOriginPreviewSession(request.params.workspaceId, target);
268 }

Callers 1

rewritePreviewBodyFunction · 0.85

Calls 1

Tested by

no test coverage detected