Complete the code to deploy a Next.js app by running the correct command in the terminal.
Run the command: npx [1]Use npx vercel to deploy your Next.js app to Vercel easily.
Complete the code to import the Vercel CLI package in a Node.js script.
import [1] from 'vercel';
The Vercel CLI package is imported as vercel by default.
Fix the error in the deployment script by choosing the correct environment variable name for the Vercel token.
const token = process.env.[1];The correct environment variable for Vercel token is VERCEL_TOKEN.
Fill both blanks to configure the Next.js app for Vercel deployment with the correct build command and output directory.
{
"builds": [
{ "src": "package.json", "use": "@vercel/[1]" }
],
"outputDirectory": "[2]"
}Use @vercel/next as the build tool and out as the output directory for static export.
Fill all three blanks to create a Next.js API route that returns a JSON response confirming deployment.
export default function handler(req, res) {
res.status([1]).json({ message: '[2] deployed successfully on [3]!' });
}The status code 200 means success. The message uses 'Next.js' and 'Vercel' to confirm deployment.