Monday, 22 February 2021

nextjs 5 deploy to vercel



//powershell
npm i -g vercel

vercel --version
Vercel CLI 21.2.3

vercel login
Enter your email

PS D:\nextjs> vercel
Vercel CLI 21.2.3
? Set up and deploy “D:\nextjs”? [Y/n] y
? Which scope do you want to deploy to? chuanshuoge6
? Link to existing project? [y/N] n
? What’s your project’s name? nextjs
? In which directory is your code located? ./
Auto-detected Project Settings (Next.js):
- Build Command: `npm run build` or `next build`
- Output Directory: Next.js default
- Development Command: next dev --port $PORT
? Want to override the settings? [y/N] n

PS D:\nextjs> vercel
Vercel CLI 21.2.3
🔍  Inspect: https://vercel.com/chuanshuoge6/nextjs-a5oz7cqag/chuanshuoge6 [2s]
✅  Preview: https://nextjs-chuanshuoge6.vercel.app [copied to clipboard] [1m]
📝  To deploy to production, run `vercel --prod`-chuanshuoge6.vercel.app/_logs or run `vercel logs nextjs-a5oz7cqag-ch
PS D:\nextjs> cel.app`

Vercel CLI 21.2.3
🔍  Inspect: https://vercel.com/chuanshuoge6/nextjs-pkqd0854w/chuanshuoge6 [3s]

reference:

1 comment: