All Guides

Auf Vercel deployen

Deployen Sie Ihr Next.js oder React-Projekt auf Vercel.

Beginner10 Min.

Setup Steps

1. Install Vercel CLI:

npm install -g vercel

2. Login:

vercel login

3. Deploy your project:

cd project-directory
vercel

4. Answer questions on first deploy (project name, framework, settings)

5. Production deploy:

vercel --prod

6. Add environment variables:

vercel env add VARIABLE_NAME

7. GitHub integration:

- Connect your GitHub repo at https://vercel.com/new

- Auto-deploy on every push

8. Add custom domain:

vercel domains add mysite.com

9. vercel.json configuration:

{
  "buildCommand": "npm run build",
  "outputDirectory": ".next",
  "framework": "nextjs"
}

10. Preview deployment: A preview URL is automatically created when you open a PR