Skip to content

Created from the discussion shown in the URL in the website field. The idea is to share the issue when instrumentationHook is true, but the folder structure relies on a src folder.

Notifications You must be signed in to change notification settings

renanbandeira/nextjs-opentelemetry-issue

Repository files navigation

Basic API routes example

Next.js ships with API routes which provides an easy solution to build your own API. This example shows how to create multiple API endpoints with serverless functions, which can execute independently.

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 api-routes api-routes-app
yarn create next-app --example api-routes api-routes-app
pnpm create next-app --example api-routes api-routes-app

Deploy it to the cloud with Vercel (Documentation).

About

Created from the discussion shown in the URL in the website field. The idea is to share the issue when instrumentationHook is true, but the folder structure relies on a src folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published