Skip to content

Commit

Permalink
fix: Only append local endpoint flag when should
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Jan 7, 2025
1 parent 928e25f commit d5981c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions e2e/har-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export const getEnv = (name: string) => {
* request to http://localhost:3000 so that Playwrights' HAR replay is used.
*/

export const harReplayGraphqlEndpointQueryParam = `flag__graphql.endpoint=${encodeURIComponent(
JSON.stringify(`http://localhost:3000/api/graphql`)
)}`;
export const harReplayGraphqlEndpointQueryParam =
process.env.E2E_HAR !== "false"
? `flag__graphql.endpoint=${encodeURIComponent(
JSON.stringify(`http://localhost:3000/api/graphql`)
)}`
: "";

0 comments on commit d5981c3

Please sign in to comment.