rsnext/examples/with-vercel-fetch
Max Proske faaba0f8ec
Simplify and convert with-vercel-fetch example to TypeScript (#43403)
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)
2022-11-30 11:41:14 +00:00
..
pages Simplify and convert with-vercel-fetch example to TypeScript (#43403) 2022-11-30 11:41:14 +00:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
github.d.ts Simplify and convert with-vercel-fetch example to TypeScript (#43403) 2022-11-30 11:41:14 +00:00
package.json Simplify and convert with-vercel-fetch example to TypeScript (#43403) 2022-11-30 11:41:14 +00:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00
tsconfig.json Simplify and convert with-vercel-fetch example to TypeScript (#43403) 2022-11-30 11:41:14 +00:00

@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

Deploy with Vercel

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