Skip to content

Commit ded91d0

Browse files
committed
Refactor Vite config to change build step for llms.txt copying from buildEnd to closeBundle for improved clarity and timing in the deployment process.
1 parent 7b7e469 commit ded91d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/web/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ function llmsTxtPlugin(): Plugin {
5454
next()
5555
})
5656
},
57-
buildEnd() {
58-
// Copy llms.txt to dist/public for static deployment
57+
closeBundle() {
58+
// Copy llms.txt to dist/ after build completes
5959
const outputDir = resolve(__dirname, 'dist')
6060
if (!existsSync(outputDir)) {
6161
mkdirSync(outputDir, { recursive: true })

0 commit comments

Comments
 (0)