Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Firebase SSR with Astro

Hello,

We want to deploy a new website using Astro with Firebase and SSR feature on GCP.

For now we have developed and deployed a minimal HTML template using https://github.com/FirebaseExtended/action-hosting-deploy action (last version). with FIREBASE_CLI_EXPERIMENTS: webframeworks env vars

Here my firebase.json file :

{
"hosting": {
"source": ".",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"frameworksBackend": {
"region": "europe-west1",
"ingressSettings": "ALLOW_ALL"
}
}
}

I have several questions about it : 

- Do we have a way to customize the cloud function name created by the deployment pipeline ? because the name is `ssr[my-projectid]` and I didn't find any props to configure it

- The deployment pipeline seems deploy successfully on Firebase but the pipeline on github action is marked as failed: 

 

✔ hosting[my-project-id]: release complete

✔ Deploy complete!

Project Console: https://console.firebase.google.com/project/[my-project-id]/overview
Hosting URL: https://[my-project-id].web.app
Error: There was an error deploying functions
{
conclusion: 'failure',
output: {
title: 'Deploy preview failed',
summary: 'Error: There was an error deploying functions'
}
}

 

I can't see any error in log output, except maybe a 404 on artifact repository : 

[apiv2][status] DELETE https://artifactregistry.googleapis.com/v1beta2/projects/[my-project-id]/locations/europe-west1/repositories/gcf-artifacts/packages/ssr[my-project-id]  404

(This is also strange because it tries to delete on path gcf-artifacts/packages/ssr[my-project-id] but in cloud build I see the build pushing to gcf-artifacts/[my-project-id]__europe--west1__ssr[my-project-id]:latest 

Thanks

0 2 594
2 REPLIES 2

Hi @Klaitos,

You can customize your project ID as mentioned in the Deploy to Firebase Hosting documentation. You may also check Deploy to live & preview channels via GitHub pull requests for guidance on integrating Firebase with GitHub.

As for the GitHub deploy preview failure, there are a couple of things that might be causing the hiccup. The 404 error in the artifact repository usually means that the specified artifact is either missing or has already been deleted. Also, if your Cloud Functions are hitting time limits or running into errors during execution, that could lead to deployment issues as well.

If you continue to run into issues, consider reaching out to Google Cloud Support. Their team is great at diagnosing underlying issues. When you contact them, be sure to provide as much detail as possible and include screenshots. This will help them understand your problem better and get it sorted out more quickly.

Hope that helps!

Hello, I don't want to customize my project id but the name of the ssr function deployed by Firebase hosting.