Skip to content

Commit

Permalink
fix: Sharp executable is missing on production
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz authored Dec 7, 2023
1 parent 1f573e5 commit 7e9d2c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
- name: Build Next application
run: |
npm ci --ignore-build
npm rebuild --arch=x64 --platform=linux --libc=musl sharp
npm install --cpu=x64 --os=linux --libc=musl sharp
npm rebuild --cpu=x64 --os=linux --libc=musl sharp
npm run build
[ "$GITHUB_REF" == "refs/heads/master" ] && PRERELEASE=false || PRERELEASE=true
Expand All @@ -41,6 +42,7 @@ jobs:
- name: Move Next standalone files and build package
run: |
cp -r node_modules/\@img .next/standalone/node_modules
cp -r public/ .next/standalone/
cp -r .next/static .next/standalone/.next/
TMP_DIR=/tmp/liman-website
Expand Down

0 comments on commit 7e9d2c0

Please sign in to comment.