Skip to content

Commit 16b34d1

Browse files
committed
fix: readd build script
1 parent 380128c commit 16b34d1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/deploy.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
- name: Build
2424
run: npm run build
2525

26-
- name: Generate sitemap and robots.txt (postbuild)
27-
run: npm run postbuild
28-
2926
- name: Deploy to server
3027
uses: appleboy/scp-action@master
3128
with:

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@
1212
"dev": "next",
1313
"build": "next build",
1414
"start": "next start",
15-
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind"
15+
"postbuild": "next-sitemap && pagefind --site .next/server/app --output-path public/_pagefind"
1616
},
1717
"devDependencies": {
1818
"pagefind": "^1.3.0"
19-
},
20-
"scripts": {
21-
"postbuild": "next-sitemap"
2219
}
2320
}

0 commit comments

Comments
 (0)