Vercel 部署代理
Installation
Use the upstream install or setup path that matches your environment:
- npm i -g vercel
- npm i -g @vercel/vc-native --force
- npm i -g @vercel/vc-native-darwin-x64 --force
- git clone https://github.com/1991513ccie-png/skills
Requirements and caveats from upstream:
- The --force flag allows npm to replace existing global vercel and vc bin links. Users who do not install @vercel/vc-native continue using the regular Node.js-based CLI from npm i -g vercel.
- const { nodeFileTrace } = require('@vercel/nft');
Basic usage or getting-started notes:
- This project uses pnpm to install dependencies and run scripts.
- You can use the vercel script to run local changes as if you were invoking Vercel CLI. For example, vercel deploy --cwd=/path/to/project could be run with local changes with pnpm vercel deploy --cwd=/path/to/project.
- Unit tests are run locally with jest and execute quickly because they are testing the smallest units of code.
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/vercel/vercel/HEAD/README.md