fix: Vite dev server add searchForWorkspaceRoot (#26036)

* misc: Vite dev server add searchForWorkspaceRoot

* misc: Vite dev server add searchForWorkspaceRoot

* trigger ci

* add null check

---------

Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
This commit is contained in:
Radik24
2023-03-16 05:42:50 +01:00
committed by GitHub
parent ea8173f6d9
commit 6397ac60da

View File

@@ -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',