From 512a155952913dca25cad085defdfc8039901943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bia=C5=82osk=C3=B3rski?= Date: Thu, 19 Dec 2024 10:43:56 +0100 Subject: [PATCH] adjust build phase for Next 14 --- .github/workflows/build-and-deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index eb68f10..3270a05 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -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: @@ -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