Skip to content

Commit

Permalink
perf: add build concurrency (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Oct 12, 2024
1 parent 741076c commit cf28d27
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from 'node:path';
import { resolve } from 'node:path';
import { availableParallelism } from 'node:os';

import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
Expand Down Expand Up @@ -33,13 +34,14 @@ export default defineConfig({
})
],
build: {
assets: 'assets'
assets: 'assets',
concurrency: availableParallelism()
},
vite: {
cacheDir: path.resolve(import.meta.dirname, './node_modules/.vite'),
cacheDir: resolve(import.meta.dirname, './node_modules/.vite'),
resolve: {
alias: {
'@': path.resolve(import.meta.dirname, './src')
'@': resolve(import.meta.dirname, './src')
}
},
plugins: [Icons({
Expand Down

0 comments on commit cf28d27

Please sign in to comment.