---
title: "Combining data fetching strategies"
description: "Learn how to use different data fetching strategies to avoid switching from static pre-rendering."
url: "https://vercel.com/templates/next.js/combining-data-fetching-strategies"
links:
  repository: "https://github.com/vercel/examples/tree/main/solutions/combining-data-fetching-strategies"
  demo: "https://solutions-combining-data-fetching-strategies.vercel.app"
  deploy: "https://vercel.com/new/clone?demo-title=Combining+data+fetching+strategies&demo-description=Learn+how+to+use+different+data+fetching+strategies+to+avoid+switching+from+static+pre-rendering.&demo-url=https%3A%2F%2Fsolutions-combining-data-fetching-strategies.vercel.app&project-name=combining-data-fetching-strategies&repository-name=combining-data-fetching-strategies&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fcombining-data-fetching-strategies&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2FzBPfRnuINnyWaYh9ixPMb%2Fd34c25441ad26843e42a1e2f782e8085%2Fsolutions-combining-data-fetching-strategies.vercel.app_.png"
---

# Combining data fetching strategies

Learn how to use different data fetching strategies to avoid switching from static pre-rendering.

# Combining Data Fetching Strategies

This example shows how to use different data fetching strategies to avoid switching from static pre-rendering.

## Demo

https://solutions-combining-data-fetching-strategies.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=next-example):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/combining-data-fetching-strategies&project-name=combining-data-fetching-strategies&repository-name=combining-data-fetching-strategies)

### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example https://github.com/vercel/examples/tree/main/solutions/combining-data-fetching-strategies combining-data-fetching-strategies
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/solutions/combining-data-fetching-strategies combining-data-fetching-strategies
```

Next, run Next.js in development mode:

```bash
npm install
npm run dev

# or

yarn
yarn 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

### [Handling custom web fonts](https://vercel.com/templates/next.js/loading-web-fonts)

Learn how to load custom web fonts without compromising performance.

### [Reducing bandwidth usage with next/image](https://vercel.com/templates/next.js/reduce-image-bandwidth-usage)

Learn how to reduce bandwidth and processing costs when using different layouts.

---

## 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.
