-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
35 lines (32 loc) · 844 Bytes
/
astro.config.mjs
File metadata and controls
35 lines (32 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from 'astro/config';
export default defineConfig({
// --- Vite configuration ---
vite: {
server: {
watch: {
// Ignore heavy or unnecessary directories
ignored: [
'**/node_modules/**',
'**/public/node/**',
'**/.git/**',
'**/.astro/**',
'**/dist/**',
],
usePolling: false, // Use native file watching (faster and fewer descriptors)
},
},
},
// --- Astro options (optional but good practice) ---
server: {
// If your dev server is sluggish on big repos, limit filesystem scanning:
watchExclude: [
'node_modules/**',
'public/node/**',
'dist/**',
],
},
// --- Optional: reduce rebuild noise ---
build: {
inlineStylesheets: 'auto', // Keeps memory usage moderate
},
});