Skip to content

Commit

Permalink
Use vercel instead of now (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaJastrz committed Jan 15, 2021
1 parent 5b76c71 commit cfa5d65
Show file tree
Hide file tree
Showing 4 changed files with 7,033 additions and 7,529 deletions.
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -9,7 +9,7 @@
"format": "prettier --write .",
"lint": "tsc && eslint . --ext .js,.ts,.tsx",
"validate": "yarn lint && yarn test && yarn build",
"deploy": "now"
"deploy": "vercel"
},
"browserslist": {
"production": [
Expand Down Expand Up @@ -62,7 +62,6 @@
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@now/node": "^1.8.0",
"@testing-library/dom": "^7.29.4",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.3",
Expand All @@ -74,25 +73,26 @@
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"@vercel/node": "^1.9.0",
"@vitejs/plugin-react-refresh": "^1.1.1",
"autoprefixer": "^10.2.1",
"babel-jest": "^26.6.3",
"cross-env": "^7.0.3",
"eslint": "^7.17.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^4.3.7",
"husky": "^4.3.8",
"jest": "^26.6.3",
"jest-transform-stub": "^2.0.0",
"jest-watch-typeahead": "^0.6.1",
"lint-staged": "^10.5.3",
"now": "^20.0.0",
"prettier": "~2.2.1",
"type-fest": "^0.20.2",
"typescript": "~4.1.3",
"vercel": "^21.1.0",
"vite": "^2.0.0-beta.30"
}
}
2 changes: 1 addition & 1 deletion src/api/package.ts
@@ -1,4 +1,4 @@
import {NowRequest, NowResponse} from '@now/node'
import {NowRequest, NowResponse} from '@vercel/node'

import type {PackageResponseData} from '@/types/api'
import {FetchError} from './utils/errors'
Expand Down
4 changes: 2 additions & 2 deletions vercel.json
Expand Up @@ -4,8 +4,8 @@
"silent": true
},
"builds": [
{"src": "package.json", "use": "@now/static-build"},
{"src": "src/api/package.ts", "use": "@now/node"}
{"src": "package.json", "use": "@vercel/static-build"},
{"src": "src/api/package.ts", "use": "@vercel/node"}
],
"routes": [
{
Expand Down

0 comments on commit cfa5d65

Please sign in to comment.