used yarn build

This commit is contained in:
Murat Ozcan 2022-05-04 07:27:13 -05:00
parent 6f97bceb96
commit be580666a4
2 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@ jobs:
uses: cypress-io/github-action@v3.0.4 uses: cypress-io/github-action@v3.0.4
with: with:
browser: chrome browser: chrome
build: npm run build build: yarn build
start: yarn start start: yarn start
wait-on: 'http://localhost:3000' wait-on: 'http://localhost:3000'
env: env:

View File

@ -298,6 +298,10 @@ _______
Question here; why do we need to run `npm run build` ? We are just serving the app here. Is it a NextJs requirement to build the app before it can be served? We did not need it locally. Question here; why do we need to run `npm run build` ? We are just serving the app here. Is it a NextJs requirement to build the app before it can be served? We did not need it locally.
https://github.com/muratkeremozcan/nextjs-cypress/runs/6289265533?check_suite_focus=true#step:3:60
______ ______
We need to add `NEXT_PUBLIC_COMMERCE_SEARCH_ENABLED=true` from the above section, since we did this change in the `.env.local` file. We need to add `NEXT_PUBLIC_COMMERCE_SEARCH_ENABLED=true` from the above section, since we did this change in the `.env.local` file.
@ -341,4 +345,3 @@ When did we create a `header.spec.js` file? It is possible that one might miss t
└── index.js └── index.js
``` ```
https://github.com/muratkeremozcan/nextjs-cypress/runs/6289265533?check_suite_focus=true#step:3:60