From 09754967426dd8069b90fda98e77d9124ce58d3a Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Mon, 13 Nov 2023 18:28:32 +0100 Subject: [PATCH] _gatsby/file is prefixed --- e2e-tests/adapters/cypress/e2e/remote-file.cy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e-tests/adapters/cypress/e2e/remote-file.cy.ts b/e2e-tests/adapters/cypress/e2e/remote-file.cy.ts index 10e9b0a3edff4..1f814544b02a2 100644 --- a/e2e-tests/adapters/cypress/e2e/remote-file.cy.ts +++ b/e2e-tests/adapters/cypress/e2e/remote-file.cy.ts @@ -9,6 +9,8 @@ Cypress.on("uncaught:exception", err => { } }) +const PATH_PREFIX = Cypress.env(`PATH_PREFIX`) || `` + describe( `remote-file`, { @@ -82,7 +84,7 @@ describe( for (const url of urls) { // using OSS implementation for publicURL for now - expect(url).to.match(/^\/_gatsby\/file/) + expect(url).to.match(new RegExp(`^${PATH_PREFIX}/_gatsby/file`)) const res = await fetch(url, { method: "HEAD", })