0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix(config): prevent vite from loading config (#10360)

This commit is contained in:
Nicolas Mattia 2024-03-08 05:22:58 +01:00 committed by GitHub
parent 82d81a1485
commit ac766647b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Fixes an issue where some CLI commands attempted to directly read vite config files.

View file

@ -6,6 +6,7 @@ import { debug } from '../logger/core.js';
async function createViteServer(root: string, fs: typeof fsType): Promise<ViteDevServer> {
const viteServer = await createServer({
configFile: false,
server: { middlewareMode: true, hmr: false, watch: null },
optimizeDeps: { noDiscovery: true },
clearScreen: false,