Skip to content

Next.js template to deploy to Google Cloud Run as a Docker container.

Notifications You must be signed in to change notification settings

nextjs/deploy-google-cloud-run

Repository files navigation

Deploy Next.js to Google Cloud Run

This is a Next.js template which can be deployed to Google Cloud Run.

Deploying to Google Cloud Run

This template can be used to deploy your Next.js application as a Docker container.

  1. Install the Google Cloud SDK so you can use gcloud on the command line.

  2. Run gcloud auth login to log in to your account.

  3. Create a new project in Google Cloud Run (e.g. nextjs-docker). Ensure billing is turned on.

  4. Deploy to Cloud Run: gcloud run deploy helloworld --source=. --project=PROJECT-ID --region=us-central1 --allow-unauthenticated.

    • You must replace PROJECT-ID with your Google Cloud Project ID.
    • You may replace us-central1 with a different Google Cloud region.

For more information, see the Next.js deployment documentation.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

Next.js template to deploy to Google Cloud Run as a Docker container.

Resources

Stars

Watchers

Forks