### Initialize Vercel Deployment Source: https://github.com/replicate/getting-started-nextjs-language/blob/main/README.md This command installs the Vercel CLI and initiates the deployment process for the Next.js application to Vercel. It guides the user through login, project creation, and initial deployment. ```console npx vercel ``` -------------------------------- ### Install Node.js Dependencies Source: https://github.com/replicate/getting-started-nextjs-language/blob/main/README.md This command installs all necessary Node.js package dependencies listed in the `package.json` file for the Next.js project. ```console npm install ``` -------------------------------- ### Start Next.js Development Server Source: https://github.com/replicate/getting-started-nextjs-language/blob/main/README.md This command starts the Next.js development server, allowing you to view and test the application locally in your browser. It typically runs on `http://localhost:3000`. ```console npm run dev ``` -------------------------------- ### Deploy Next.js Application to Vercel Production Source: https://github.com/replicate/getting-started-nextjs-language/blob/main/README.md This command performs a production deployment of the Next.js application to Vercel. It should be run after configuring environment variables to ensure the deployed app has access to necessary secrets like the Replicate API token. ```console npx vercel deploy --prod ``` -------------------------------- ### Add Replicate API Token to Vercel Project Environment Variables Source: https://github.com/replicate/getting-started-nextjs-language/blob/main/README.md This command adds the Replicate API token as an environment variable to the deployed Vercel project. This is essential for the live application to authenticate and make requests to the Replicate API. ```console vercel env add REPLICATE_API_TOKEN ``` -------------------------------- ### Set Replicate API Token in Local Environment Source: https://github.com/replicate/getting-started-nextjs-language/blob/main/README.md This instruction shows how to add your Replicate API token to the local environment variables, making it accessible to the Next.js application during development. The token is crucial for authenticating API calls to Replicate. ```console REPLICATE_API_TOKEN= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.