summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/astro/src/core/create-vite.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts
index 9c728301b..fd23a27f5 100644
--- a/packages/astro/src/core/create-vite.ts
+++ b/packages/astro/src/core/create-vite.ts
@@ -100,6 +100,8 @@ export async function createVite(
// Start with the Vite configuration that Astro core needs
const commonConfig: vite.InlineConfig = {
+ // Tell Vite not to combine config from vite.config.js with our provided inline config
+ configFile: false,
cacheDir: fileURLToPath(new URL('./node_modules/.vite/', settings.config.root)), // using local caches allows Astro to be used in monorepos, etc.
clearScreen: false, // we want to control the output, not Vite
logLevel: 'warn', // log warnings and errors only