Skip to content

Commit

Permalink
fix(build): clear cache after build
Browse files Browse the repository at this point in the history
closes #3363
  • Loading branch information
brc-dd committed Dec 26, 2023
1 parent 1fa1f2b commit 9568fea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { rimraf } from 'rimraf'
import { pathToFileURL } from 'url'
import type { BuildOptions, Rollup } from 'vite'
import { resolveConfig, type SiteConfig } from '../config'
import { clearCache } from '../markdownToVue'
import { slash, type HeadConfig } from '../shared'
import { deserializeFunctions, serializeFunctions } from '../utils/fnSerialize'
import { task } from '../utils/task'
Expand Down Expand Up @@ -140,6 +141,7 @@ export async function build(

await generateSitemap(siteConfig)
await siteConfig.buildEnd?.(siteConfig)
clearCache()

siteConfig.logger.info(
`build complete in ${((Date.now() - start) / 1000).toFixed(2)}s.`
Expand Down

0 comments on commit 9568fea

Please sign in to comment.