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 5827bcb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e/har-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ 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
? `flag__graphql.endpoint=${encodeURIComponent(
JSON.stringify(`http://localhost:3000/api/graphql`)
)}`
: "";

0 comments on commit 5827bcb

Please sign in to comment.