Deploy your Next.js applications with zero configuration. Automatic optimizations, edge functions, and serverless scaling included.
Deploy your Next.js app in minutes
Start with a new Next.js project or use an existing one.
npx create-next-app@latestConnect your GitHub, GitLab, or Bitbucket repository to CupaDev.
git push origin mainYour Next.js app deploys automatically on every push.
{
"buildCommand": "npm run build",
"outputDirectory": ".next",
"nodeVersion": "20.x",
"env": {
"NODE_ENV": "production"
},
"headers": [
{
"source": "/api/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}
],
"redirects": [
{
"source": "/docs",
"destination": "/documentation",
"permanent": true
}
]
}Specify your build command and output directory. CupaDev automatically detects Next.js projects and optimizes the build process.
Configure environment variables, headers, redirects, and rewrites for your deployment.
Set sensitive environment variables securely in your CupaDev project settings:
NEXT_PUBLIC_API_URL=https://api.example.com
DATABASE_URL=postgresql://...
STRIPE_API_KEY=sk_...Variables prefixed with NEXT_PUBLIC_ are exposed to the browser. Keep sensitive keys private.
CupaDev supports connections to any database provider:
Point your custom domain to your Next.js deployment:
Get your Next.js application deployed in minutes with automatic scaling and edge optimization.