mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-09 08:40:32 -06:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user