Skip to content

Commit

Permalink
Merge pull request #165 from JakubBialoskorski/fix-next14-scripts
Browse files Browse the repository at this point in the history
Adjust build phase for Next 14
  • Loading branch information
JakubBialoskorski authored Dec 19, 2024
2 parents 54b7341 + 512a155 commit 51f0927
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ jobs:
- name: Build the project
run: npm run build
- name: Start server
run: npm start &
run: npx serve@latest out -l 3000 &
env:
CI: true
- name: Wait for server
run: npx wait-on http://127.0.0.1:3000
run: npx wait-on http://127.0.0.1:3000 --timeout 60000
- name: Check server response
run: curl -v http://127.0.0.1:3000
- name: Cypress run
uses: cypress-io/github-action@v5
build:
Expand All @@ -42,7 +44,6 @@ jobs:
run: |
npm ci
npm run build
npm run export
touch out/.nojekyll
- name: Deploy
# https://github.com/JamesIves/github-pages-deploy-action
Expand Down

0 comments on commit 51f0927

Please sign in to comment.