faaba0f8ec
Simplified the example to just the specific feature, and converted to TypeScript. - `node-fetch@2` is either polyfilled by Next.js or a peerDep of `@vercel/fetch`, I can't quite tell, but either way it can be removed from the dependencies. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm build && pnpm lint` - [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) |
||
---|---|---|
.. | ||
pages | ||
.gitignore | ||
github.d.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
@vercel/fetch example
This example shows how to use @vercel/fetch
in a Next.js application.
Deploy your own
Deploy the example using Vercel or preview live with StackBlitz
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-vercel-fetch with-vercel-fetch-app
yarn create next-app --example with-vercel-fetch with-vercel-fetch-app
pnpm create next-app --example with-vercel-fetch with-vercel-fetch-app