Skip to content

Commit

Permalink
fix: Vite dev server add searchForWorkspaceRoot (#26036)
Browse files Browse the repository at this point in the history
* misc: Vite dev server add searchForWorkspaceRoot

* misc: Vite dev server add searchForWorkspaceRoot

* trigger ci

* add null check

---------

Co-authored-by: Mike Plummer <[email protected]>
Co-authored-by: Emily Rohrbough <[email protected]>
Co-authored-by: Lachlan Miller <[email protected]>
  • Loading branch information
4 people authored Mar 16, 2023
1 parent ea8173f commit 6397ac6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions npm/vite-dev-server/src/resolveConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ function makeCypressViteConfig (config: ViteDevServerConfig, vite: Vite): Inline
projectRoot,
vitePathNodeModules,
cypressBinaryRoot,
// Allow in monorepo: https://vitejs.dev/config/server-options.html#server-fs-allow
// Supported from Vite v3 - add null check for v2 users.
vite.searchForWorkspaceRoot?.(process.cwd()),
],
},
host: '127.0.0.1',
Expand Down

5 comments on commit 6397ac6

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6397ac6 Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.2/linux-arm64/develop-6397ac60da1bfa7149212aeab5f0ae4c5d6372d7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6397ac6 Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.2/linux-x64/develop-6397ac60da1bfa7149212aeab5f0ae4c5d6372d7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6397ac6 Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.2/darwin-arm64/develop-6397ac60da1bfa7149212aeab5f0ae4c5d6372d7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6397ac6 Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.2/darwin-x64/develop-6397ac60da1bfa7149212aeab5f0ae4c5d6372d7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6397ac6 Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.8.2/win32-x64/develop-6397ac60da1bfa7149212aeab5f0ae4c5d6372d7/cypress.tgz

Please sign in to comment.