File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
packages/theme/src/cli/utilities Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @shopify/theme ' : patch
3+ ---
4+
5+ Mock captcha and api-collect requests in CLI proxy.
Original file line number Diff line number Diff line change @@ -17,17 +17,6 @@ export interface EvaluationConfig {
1717}
1818
1919export async function evaluate ( config : EvaluationConfig ) : Promise < string | number | undefined > {
20- try {
21- return evaluateSnippet ( config )
22-
23- // eslint-disable-next-line no-catch-all/no-catch-all, @typescript-eslint/no-explicit-any
24- } catch ( error : any ) {
25- outputInfo ( outputContent `${ outputToken . errorText ( error . message ) } ` )
26- outputDebug ( error . stack || 'Error backtrace not found' )
27- }
28- }
29-
30- async function evaluateSnippet ( config : EvaluationConfig ) : Promise < string | number | undefined > {
3120 return (
3221 ( await evalResult ( config ) ) ||
3322 ( await evalContext ( config ) ) ||
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ const IGNORED_ENDPOINTS = [
2727 '/web-pixels@' ,
2828 '/wpm' ,
2929 '/services/' ,
30+ '/api/collect' ,
31+ // Cloudflare's turnstile challenge #6416
32+ '/cdn-cgi/challenge-platform' ,
3033]
3134
3235const SESSION_COOKIE_NAME = '_shopify_essential'
You can’t perform that action at this time.
0 commit comments