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 600
2 REPLIES 2