This is a Next.js template which can be deployed to Google Cloud Run.
This template can be used to deploy your Next.js application as a Docker container.
-
Install the Google Cloud SDK so you can use
gcloud
on the command line. -
Run
gcloud auth login
to log in to your account. -
Create a new project in Google Cloud Run (e.g.
nextjs-docker
). Ensure billing is turned on. -
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.
- You must replace
For more information, see the Next.js deployment documentation.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!