Originally published on the Plexivo blog .
A Next.js app is rarely only a front end. Sooner or later it has route handlers, server components that read data, and a database behind them. Hosting it well in India means three things: the app runs close to your users, the database runs beside the app, and the connection string never leaks into the browser.
This guide deploys a Next.js app on Plexivo App Runner in Mumbai, connects it to Plexivo Postgres, and shows two ways to talk to the database: plain SQL from the server, and the Plexivo Postgres Data API with sign-in and live data.
What do you need to deploy Next.js in India?
Your code in a GitHub, GitLab or Bitbucket repository.
A Plexivo organisation. Sign up at cloud.plexivo.io ; the free trial is on the Developer plan.
A project to hold the app and its database. Resources in the same project reach each other over the private network.
Everything runs in Mumbai, India. India (Mumbai) is live today, and more countries are available on request.…