Skip to content

Commit fc5a1ec

Browse files
committed
Fix build issue
1 parent d7d81f0 commit fc5a1ec

2 files changed

Lines changed: 1954 additions & 270 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,7 @@ jobs:
4141
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
4242
4343
- name: Install dependencies
44-
run: npm ci
45-
46-
- name: Ensure parcel watcher native prebuilds are present
47-
run: |
48-
# Some runners skip optional native prebuilds; force-install platform build for @parcel/watcher
49-
npm ls @parcel/watcher || npm install @parcel/watcher --no-save || true
50-
npm rebuild @parcel/watcher || true
51-
# Force install platform-specific prebuilt binary as a fallback
52-
npm install @parcel/watcher-linux-x64-glibc --no-save || true
53-
npm rebuild @parcel/watcher --build-from-source || true
54-
55-
- name: Ensure @swc/core native binding is present
56-
run: |
57-
# Try to rebuild @swc/core native binaries
58-
npm rebuild @swc/core || true
59-
# Fallback: install platform-specific prebuilt package
60-
npm install @swc/core-linux-x64-gnu --no-save || true
61-
# Final safety: rebuild all native modules
62-
npm rebuild || true
44+
run: npm ci --include=optional
6345

6446
- name: Build with Next.js
6547
run: npm run build

0 commit comments

Comments
 (0)