Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/preview-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ the shared `@cheatcode/observability` emitters.
- Worker route: `*.${PREVIEW_HOSTNAME}/*` points only to
`cheatcode-preview-proxy`. Cloudflare's most-specific-route rule lets the exact
gateway and webhooks routes override it.
- Exact no-script routes for `clerk.trycheatcode.com/*`,
`docs.trycheatcode.com/*`, and `www.trycheatcode.com/*` negate the wildcard
for Clerk, documentation, and the Vercel frontend hostname. The preview
wildcard accepts only well-formed `{sandboxId}--{port}` hostnames; arbitrary
wildcard labels are rejected by the normal preview-host validation.
- Exact no-script routes for `clerk.trycheatcode.com/*` and
`www.trycheatcode.com/*` negate the wildcard for Clerk and the Vercel frontend
hostname. The preview wildcard accepts only well-formed
`{sandboxId}--{port}` hostnames; arbitrary wildcard labels are rejected by
the normal preview-host validation.
- The wildcard route is declared in
[`apps/preview-proxy/wrangler.jsonc`](./wrangler.jsonc) and deployed directly
by [`.github/workflows/deploy-cloudflare.yml`](../../.github/workflows/deploy-cloudflare.yml).
Expand Down
3 changes: 0 additions & 3 deletions packages/observability/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class APIError extends Error {
hint?: string;
retriable?: boolean;
details?: Record<string, unknown>;
doc_url?: string;
};

public constructor(
Expand All @@ -29,7 +28,6 @@ export class APIError extends Error {
hint?: string;
retriable?: boolean;
details?: Record<string, unknown>;
doc_url?: string;
} = {},
) {
super(message, opts.cause === undefined ? undefined : { cause: opts.cause });
Expand All @@ -47,7 +45,6 @@ export class APIError extends Error {
hint: this.opts.hint,
retriable: this.retriable,
request_id: requestId,
doc_url: this.opts.doc_url ?? `https://docs.trycheatcode.com/errors/${this.code}`,
details: this.opts.details,
},
},
Expand Down
1 change: 0 additions & 1 deletion packages/types/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const ErrorResponseSchema = z.strictObject({
hint: z.string().optional(),
retriable: z.boolean(),
request_id: z.string(),
doc_url: z.string().url(),
details: z.record(z.string(), z.unknown()).optional(),
}),
});