---
title: "Power Parity Pricing"
description: "Implement power parity pricing using information from the request geolocation object in Edge Middleware."
url: "https://vercel.com/templates/next.js/power-parity-pricing"
links:
  repository: "https://github.com/vercel/examples/tree/main/edge-middleware/power-parity-pricing"
  demo: "https://edge-functions-power-parity-pricing.vercel.app"
  deploy: "https://vercel.com/new/clone?demo-title=Power+Parity+Pricing&demo-description=Implement+power+parity+pricing+using+information+from+the+request+geolocation+object+in+Edge+Middleware.&demo-url=https%3A%2F%2Fedge-functions-power-parity-pricing.vercel.app&project-name=power-parity-pricing&repository-name=power-parity-pricing&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fedge-middleware%2Fpower-parity-pricing&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F17py8cx3vkMcztMZMECeQl%2Fec5564fc5c3e4a6c631b40d411177ebd%2Fedge-functions-power-parity-pricing.vercel.app_.png"
---

# Power Parity Pricing

Implement power parity pricing using information from the request geolocation object in Edge Middleware.

# Power Parity Pricing

This example shows how to implement PPP using information from the request geolocation object on edge middleware to determine a user's location.

## Demo

https://edge-functions-power-parity-pricing.vercel.app

## How to Use

You can choose from one of the following two methods to use this repository:

### One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/edge-middleware/power-parity-pricing&project-name=power-parity-pricing&repository-name=power-parity-pricing)

### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [pnpm](https://pnpm.io/installation) to bootstrap the example:

```bash
pnpm create next-app --example https://github.com/vercel/examples/tree/main/edge-middleware/power-parity-pricing power-parity-pricing
```

Next, run Next.js in development mode:

```bash
pnpm dev
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=edge-middleware-eap) ([Documentation](https://nextjs.org/docs/deployment)).

## Related Templates

### [Power Parity Pricing Strategies](https://vercel.com/templates/next.js/power-parity-pricing-strategies)

Shows the differences between doing PPP at the edge using information from the geolocation object, Node.js SSR, and client-side rendering.

### [A/B Testing Simple](https://vercel.com/templates/next.js/ab-testing-simple)

By A/B testing at the edge, you'll reduce CLS from client-loaded experiments and improve your site's performance with smaller JS bundles.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
