Skip to content

Commit

Permalink
fix: cannot build on Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuddy committed May 15, 2024
1 parent 3f8ae28 commit f3405e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,5 @@ jobs:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Unit tests
run: npm run test:ci
- name: E2E tests
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start
browser: chrome
- name: Build app
run: npm run build --configuration=production
run: npm run build
7 changes: 3 additions & 4 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"rewrites": [{ "source": "/docs/(.*)", "destination": "/docs/index.html" }],
"routes": [
"headers": [
{
"src": "/docs/(.*)",
"headers": { "Cache-Control": "no-cache" },
"continue": true
"source": "/docs/(.*)",
"headers": [{ "key": "Cache-Control", "value": "no-cache" }]
}
],
"cleanUrls": true
Expand Down

0 comments on commit f3405e2

Please sign in to comment.