GCP 환경설정 부분 코드 건들지도 않았는데, 잘되던 배포가 갑자기 안되기 시작했다.
에러 로그에서 NODE_ENV를 인식하지 못하고 자꾸 배포에 실패했다는데..
Running the default build script can be skipped by passing the empty environment variable `GOOGLE_NODE_RUN_SCRIPTS=` to the build.
알고보니 4월 11일 (2023년)에 업데이트가 있었다.
환경변수 설정파일에 빈값의 GOOGLE_NODE_RUN_SCRIPTS 변수를 추가해주면 된다.
아니면 package.json에서 gcp-build 스크립트를 추가해도 된다.
https://cloud.google.com/docs/buildpacks/nodejs?hl=ko#executing_custom_build_steps_during_deployment
Node.js 애플리케이션 빌드 | Buildpacks | Google Cloud
의견 보내기 Node.js 애플리케이션 빌드 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. Node.js 버전 지정 빌드팩 프로젝트는 Node.js의 현재 및 활성 LTS 출시 버
cloud.google.com
https://www.reddit.com/r/googlecloudupdates/comments/12j4gu7/april_11_2023_gcp_release_notes/
r/googlecloudupdates on Reddit: April 11, 2023 GCP release notes
Posted by u/gcp_updates_bot - 2 votes and no comments
www.reddit.com
https://github.com/GoogleCloudPlatform/buildpacks/issues/287
gcloud run deploy fails because npm run build is executed automatically · Issue #287 · GoogleCloudPlatform/buildpacks
starting today, all deployments to google cloud run using the following command fail: gcloud run deploy <service-name> --project <project-name> --region <region> --source . [... additonal service p...
github.com