firebase / firebase/apphosting-adapters
Angular deploy with custom commands
- Dominant language
- TypeScript
- Stars
- 478
- Forks
- 1.5k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 2
Description
I'm trying to deploy an Angular project on Firebase App Hosting, using custom build commands for both production and development environments.
I created two configuration files:
apphosting.production.yaml
apphosting.development.yaml
Each file is associated with a backend configured for its respective environment (production or development).
apphosting.development.yaml
```
scripts:
buildCommand: npm install && ng build --configuration development
```
apphosting.production.yaml
```
scripts:
buildCommand: npm install && ng build --configuration production
```
The build seems to work, but after deploying, when I access the app, I get this error on the page:
```
Service Unavailable
or Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
```
Has anyone experienced something similar or knows what might be causing this?
The only relevant documentation I found is here:
👉 https://firebase.google.com/docs/app-hosting/configure?hl=pt-br#override-scripts
Any help would be appreciated!
Contributor guide
Assessment
This issue has not been assessed yet.