In this recipe, we will learn how to link our project to the Vercel platform through the Vercel-CLI and then deploy the platform with it:
- Open your Vue project and then open the package.json file. Check whether you have the build script defined, as in the following example:
"scripts": {
"serve": "Vue-CLI-service serve",
"build": "Vue-CLI-service build",
"lint": "Vue-CLI-service lint"
},
- Make sure your application build script creates a dist folder in the main folder.
- In your project folder, open Terminal (macOS or Linux) or Command Prompt/PowerShell (Windows) and execute the following command:
> vercel
This will prompt you for a login to the Vercel platform:
> No existing credentials found. Please log in:
Enter your email:
- Enter the email address that is linked to the repository manager that you have used to sign in to Vercel. You will receive an email with a Verify button; click on it...