Skip to content

Commit 9881c37

Browse files
Added job to 'ephemerally delete' server files for static build.
1 parent 7e56b13 commit 9881c37

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/nextjs-static-gh-pages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353

5454
# NOTE: We do NOT need to create .env or secrets here, as we provide them directly to the build step below.
5555

56+
57+
- name: 🚫 Ephemerally delete server/api files
58+
run: |
59+
echo "Deleting src/app/api and src/server for static build..."
60+
rm -rf src/app/api src/server
61+
5662
- name: 📥 Install dependencies
5763
run: ${{ env.manager }} ${{ env.command }}
5864

0 commit comments

Comments
 (0)