Skip to content

Commit

Permalink
_gatsby/file is prefixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Nov 13, 2023
1 parent d324338 commit 0975496
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e-tests/adapters/cypress/e2e/remote-file.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Cypress.on("uncaught:exception", err => {
}
})

const PATH_PREFIX = Cypress.env(`PATH_PREFIX`) || ``

describe(
`remote-file`,
{
Expand Down Expand Up @@ -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",
})
Expand Down

0 comments on commit 0975496

Please sign in to comment.