Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi guys,
I couldn’t find information on how to get the geo in the middleware. For example, a user go on the website and I create a cookie location: Canada or location: city
For now I tried, but no success. It’s always USx:
export default async function middleware(req: NextRequest) {
const { nextUrl: url, geo } = req;
const city = geo?.latitude ?? 'USx';
const res = NextResponse.next();
const supabase = createMiddlewareSupabaseClient({ req, res });
res.cookies.set('city', city);
KFSys
KFSys
Manuel Maldonado
07ffbf0c7e1b47f4b26636bc7104f4
Solomon
Jopce
JipSterk
Mireya Leon
ITTI Nepal
alunlewis
Bartek Pacia