Demonstration of Next.js 8.x on Google App Engine's Standard Environment for Node.js.
- Install the Google Cloud Platform SDK.
- Clone this repo.
Start the app to make sure it runs properly.
npm run dev
If you have not set up a project and application to run this demo, follow the steps below. Otherwise, skip to the next section.
First, authenticate to GCP if you have not already:
gcloud auth login
Using the GCP CLI, create a new project and application. Replace PROJECT-NAME
with your own.
gcloud projects create PROJECT-NAME
gcloud config set project PROJECT-NAME
gcloud app create
Wait a few minutes while Google provisions resources. While you are waiting, enable the Cloud Build API for your project by visiting the Cloud Build API page for your project (ex: https://console.developers.google.com/apis/api/cloudbuild.googleapis.com/overview?project=PROJECT-NAME).
Easy!
npm run build
npm run deploy
Visit the link provided by GCP to test.