Skip to content

Commit a14440a

Browse files
committed
fix postbuild cache
1 parent 15358d7 commit a14440a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

apps/portal/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
"dev": "next dev --turbopack",
99
"prebuild": "pnpm run create-index",
1010
"build": "next build",
11-
"postbuild": "pnpm run extract-search-data",
11+
"postbuild": "pnpm run extract-search-data && pnpm next-sitemap",
1212
"start": "next start",
1313
"lint": "biome check ./src && eslint ./src",
1414
"fix": "biome check ./src --fix && eslint ./src --fix",
1515
"create-index": "pnpm tsx scripts/createEmptySearchIndex.ts",
16-
"extract-search-data": "pnpm tsx scripts/extractSearchData.ts",
17-
"postextract-search-data": "next-sitemap"
16+
"extract-search-data": "pnpm tsx scripts/extractSearchData.ts"
1817
},
1918
"dependencies": {
2019
"@dirtycajunrice/klee": "^1.0.1",

turbo.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
"outputs": ["dist/**"],
77
"dependsOn": ["^build"]
88
},
9+
"postbuild": {
10+
"dependsOn": ["^postbuild"],
11+
"outputs": [
12+
"dist/**",
13+
".next/**",
14+
"public/robots.txt",
15+
"public/sitemap*.xml",
16+
"searchIndex.json"
17+
]
18+
},
919
"bench": {
1020
"cache": false,
1121
"dependsOn": []

0 commit comments

Comments
 (0)