A fullstack template for building multi-tenant applications with custom domains using Next.js App Router, Vercel Postgres, and the Vercel Domains API.
Platforms Starter Kit
Next.js template for building multi-tenant applications with custom domains using App Router, Vercel Postgres, and the Vercel Domains API.
View Template
Link to heading Multi-tenant apps in days, not months
Here's an example code snippet demonstrating how to use it within Next.js:
import { geolocation } from '@vercel/functions' ;
export function GET ( request : Request ) {
const { city } = geolocation ( request ) ;
return new Response ( ` <h1>Your location is ${ city } </h1> ` , {
headers : { 'content-type' : 'text/html' } ,
} ) ;
}
Reading the city from the geo IP headers in a Vercel Edge Function.
In the above example, we import the geolocation helper from @vercel/edge .
The Platforms Starter Kit comes with powerful features that lets you build multi-tenant apps in record time.
Multi-tenancy: Programmatically assign…