[{"data":1,"prerenderedAt":103},["ShallowReactive",2],{"seo-verification":3,"marketplace-app-en-nextjs-stack":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"slug":7,"slugs":8,"categorySlugs":9,"name":13,"description":14,"phase":15,"unavailableReason":16,"docsUrl":17,"logo":16,"github":16,"tagline":18,"longDescription":19,"features":20,"useCases":27,"steps":37,"faq":53,"specs":66,"compatibleOs":74,"relatedApps":75,"relatedPosts":99,"category":100},"nextjs-stack",{"fr":7,"en":7,"ar":7},{"fr":10,"en":11,"ar":12},"developpement","development","التطوير","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.",[21,22,23,24,25,26],"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.",[28,31,34],{"title":29,"body":30},"SSR marketing site","A Next.js application with full SSR for optimal Core Web Vitals and SEO — without Vercel's per-invocation billing.",{"title":32,"body":33},"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":35,"body":36},"Agency multi-site","Several Next.js client sites pooled under a single Nginx instance, each on its own subdomain with automated SSL.",[38,41,44,47,50],{"title":39,"body":40},"Create the VPS","Select the \"Next.js Stack\" template. Minimum 2 GB RAM — the Next.js production build is memory-intensive.",{"title":42,"body":43},"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":45,"body":46},"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":48,"body":49},"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":51,"body":52},"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.",[54,57,60,63],{"q":55,"a":56},"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":58,"a":59},"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":61,"a":62},"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":64,"a":65},"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":67,"cpu":68,"stack":69},"2 GB","1 vCPU",[70,71,72,73],"Node.js LTS","PM2","Nginx","PostgreSQL",[],[76,84,90],{"name":77,"slug":78,"categorySlug":11,"categoryName":79,"categoryColor":80,"logo":81,"tagline":82,"description":83},"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":85,"slug":86,"categorySlug":11,"categoryName":79,"categoryColor":80,"logo":87,"tagline":88,"description":89},"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":91,"slug":92,"categorySlug":93,"categoryName":94,"categoryColor":95,"logo":96,"tagline":97,"description":98},"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":10,"slug":11,"name":79,"objective":101,"icon":102,"color":80},"Kick off a software project quickly.","dev",1787581040643]