You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When APP_ENV isn't set, for example in a local npm run build, ng build uses your defaultConfiguration. Use $APP_ENV rather than ${APP_ENV:-production}: the current adapter fails on the braces, and #697 fixes that.
Closing this for now. If you still see the error with this setup, please comment with your Cloud Build log and we'll reopen.
Activity
leoortizz commentedon Oct 27, 2026
Thanks for the report, and sorry for the slow reply.
scripts.buildCommandreplaces App Hosting's Angular build, so the Angular adapter never runs and App Hosting doesn't get a start command for your app. Apps without SSR then fall back tonpm start(ng serve), and the Angular CLI isn't installed at runtime, so the new revision never starts (ng: not foundin the Cloud Run logs).To build a different configuration per environment and keep the adapter, remove
scripts.buildCommandand pass the configuration as a build-time variable instead:package.jsonapphosting.development.yamlapphosting.production.yamlWhen
APP_ENVisn't set, for example in a localnpm run build,ng builduses yourdefaultConfiguration. Use$APP_ENVrather than${APP_ENV:-production}: the current adapter fails on the braces, and #697 fixes that.Closing this for now. If you still see the error with this setup, please comment with your Cloud Build log and we'll reopen.