Skip to content

Commit

Permalink
fix(browser): respect "server" option in vite config (#4627)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Nov 30, 2023
1 parent e0e2017 commit 723f65b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vitest/src/integrations/browser/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export async function createBrowserServer(project: WorkspaceProject, configFile:
// browser never runs in middleware mode
server.middlewareMode = false

config.server = server
config.server = {
...config.server,
...server,
}
config.server.fs ??= {}
config.server.fs.allow = config.server.fs.allow || []
config.server.fs.allow.push(
Expand Down

0 comments on commit 723f65b

Please sign in to comment.