Skip to content

geshan/nextjs-cloud-run

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.

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

Deploy to Google Cloud Run

Run on Google Cloud

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example api-routes api-routes-app
# or
yarn create next-app --example api-routes api-routes-app

Deploy it to the cloud with Vercel (Documentation).

About

Deploy a next.js app with API to Google Cloud Run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published