[{"data":1,"prerenderedAt":111},["ShallowReactive",2],{"seo-verification":3,"marketplace-app-ma-en-nextjs-stack":6,"promo-bar-likely":110},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"key":7,"data":8},"marketplace-app-ma-en-nextjs-stack",{"slug":9,"slugs":10,"categorySlugs":11,"name":16,"description":17,"phase":18,"unavailableReason":19,"docsUrl":20,"logo":19,"github":19,"tagline":21,"longDescription":22,"features":23,"useCases":30,"steps":40,"faq":56,"specs":69,"requirements":77,"compatibleOs":80,"relatedApps":82,"relatedPosts":106,"category":107},"nextjs-stack",{"fr":9,"en":9,"ar":9,"es":9},{"fr":12,"en":13,"ar":14,"es":15},"developpement","development","التطوير","desarrollo","Next.js Stack","Node.js, PM2, Nginx and PostgreSQL preconfigured for Next.js. Deploy your React SSR apps without Vercel or function quotas.",1,null,"https:\u002F\u002Fservorbit.com\u002Fblog\u002Fdeploy-a-nextjs-application-on-a-vps","Next.js Stack — Node.js LTS, PM2, Nginx and PostgreSQL preconfigured. Deploy your React SSR app to production without Vercel.","Next.js Stack provisions your VPS with everything a Next.js application needs in production: Node.js LTS installed from the official NodeSource repository, PM2 for zero-downtime process management, Nginx as the TLS-terminating reverse proxy, and PostgreSQL for any data model your app requires. No external platform, no per-invocation billing, no 10-second function timeout.\n\nNext.js standalone output (`output: 'standalone'` in `next.config.js`) produces a self-contained bundle with only the runtime dependencies it needs — copy it to the server and start it with PM2. SSR, ISR, and API routes all run on your infrastructure, at a fixed cost, with full disk access for the persistent ISR cache between deploys.",[24,25,26,27,28,29],"Node.js LTS from the official NodeSource repository — the current LTS release, not the outdated distro package.","PM2 process manager — zero-downtime reloads, log rotation, startup scripts, and cluster mode for multi-core VPS.","Nginx reverse proxy with gzip compression and static asset caching for `\u002F_next\u002Fstatic\u002F`.","PostgreSQL for full-stack Next.js apps that need a relational database.","Compatible with Next.js App Router, Pages Router, and standalone output.","ISR (incremental static regeneration) persisted to disk between deploys.",[31,34,37],{"title":32,"body":33},"SSR marketing site","A Next.js application with full SSR for optimal Core Web Vitals and SEO — without Vercel's per-invocation billing.",{"title":35,"body":36},"Full-stack application","Next.js with App Router API routes + PostgreSQL — a backend and frontend on the same VPS at a fixed monthly cost.",{"title":38,"body":39},"Agency multi-site","Several Next.js client sites pooled under a single Nginx instance, each on its own subdomain with automated SSL.",[41,44,47,50,53],{"title":42,"body":43},"Create the VPS","Select the \"Next.js Stack\" template. Minimum 2 GB RAM — the Next.js production build is memory-intensive.",{"title":45,"body":46},"Clone and build your app","SSH in, clone your repository, create `.env.production`, run `npm ci && npm run build`. Enable `output: 'standalone'` in `next.config.js` for a lightweight deployment bundle.",{"title":48,"body":49},"First access","This template installs a toolchain (Node.js LTS, PM2, Nginx, PostgreSQL). There is no web interface to open — connect via SSH and deploy your own Next.js application.",{"title":51,"body":52},"Start with PM2","Launch with `pm2 start node --name nextjs -- .next\u002Fstandalone\u002Fserver.js`. Save the process list with `pm2 save && pm2 startup` for automatic restart on reboot.",{"title":54,"body":55},"Configure Nginx and SSL","Point the Nginx virtualhost to `proxy_pass http:\u002F\u002Flocalhost:3000`, serve `\u002F_next\u002Fstatic\u002F` directly from disk, and obtain a Let's Encrypt certificate with Certbot.",[57,60,63,66],{"q":58,"a":59},"What's the difference between Next.js Stack and Nuxt Stack?","Next.js Stack is for React applications (Next.js), while Nuxt Stack targets Vue.js applications (Nuxt 3). The toolchain is identical — Node.js LTS, PM2, Nginx, PostgreSQL — but the frameworks and their build outputs differ.",{"q":61,"a":62},"Can I host multiple Next.js sites on one VPS?","Yes. Each site runs as a separate PM2 process on a different port. Nginx routes requests by domain name and proxies to the correct process. You can host 3-5 small Next.js sites on a 4 GB VPS.",{"q":64,"a":65},"Does it support the Next.js App Router?","Yes. The stack installs Node.js LTS and PM2, which run any Next.js version including App Router projects. The `output: 'standalone'` option works with both App Router and Pages Router.",{"q":67,"a":68},"What about ISR (incremental static regeneration)?","ISR works out of the box. Pages are cached to disk in `.next\u002Fcache` and survive between PM2 reloads. For multiple server instances, configure a shared Redis cache handler.",{"ram":70,"cpu":71,"stack":72},"2 GB","1 vCPU",[73,74,75,76],"Node.js LTS","PM2","Nginx","PostgreSQL",{"ramMB":78,"vcpu":18,"diskMB":79},2048,0,[81],"ubuntu-24.04",[83,91,97],{"name":84,"slug":85,"categorySlug":13,"categoryName":86,"categoryColor":87,"logo":88,"tagline":89,"description":90},"Node.js Stack","nodejs-stack","Development","text-warning bg-warning\u002F10","https:\u002F\u002Fcdn.simpleicons.org\u002Fnodedotjs","Node.js, PM2, Nginx and a database — a production environment for your JavaScript APIs and apps.","Node.js with PM2, an Nginx reverse proxy and a database. Your JavaScript APIs and applications ready to take traffic.",{"name":92,"slug":93,"categorySlug":13,"categoryName":86,"categoryColor":87,"logo":94,"tagline":95,"description":96},"Nuxt Stack","nuxt-stack","https:\u002F\u002Fcdn.simpleicons.org\u002Fnuxt","Nuxt 3 with SSR, PostgreSQL and a reverse proxy — a production environment for your Vue.js apps.","Nuxt 3 with SSR, PostgreSQL and a reverse proxy. A production environment for your Vue.js applications.",{"name":98,"slug":99,"categorySlug":100,"categoryName":101,"categoryColor":102,"logo":103,"tagline":104,"description":105},"Coolify","coolify","application-deployment-devops","Application Deployment & DevOps","text-success bg-success\u002F10","https:\u002F\u002Fcdn.simpleicons.org\u002Fcoolify","Deploy from Git in seconds — a self-hosted alternative to Heroku, Render, and Netlify.","Deploy your applications from Git in seconds. Self-hosted, with no vendor lock-in, and automatic SSL.",[],{"key":12,"slug":13,"name":86,"objective":108,"icon":109,"color":87},"Kick off a software project quickly.","dev",true,1794270912585]