Use the following steps to deploy Front End Hosting - Basic Static Site Generator (SSG) applications in Cloud Platform:
Ensure that the commits in the branch contain a build artifact.
The build artifact is the output directory that is generated after running the npm install
and npm run build
and npm run export
commands.
Push the commits and deploy the code to an environment through the branch.
For example, if the master
branch is deployed to the Dev environment, commits including the ready-to-deploy built bundle are pushed to the master
branch, with no further npm
commands.
Use the following specifications when deploying SSG applications:
Specification | Value |
---|
Development branch | master |
Deployment branch | master |
What code is pushed | Built bundle |
Who runs npm install , npm run build , and npm run export | Developer |