{"id":13649992,"url":"https://github.com/thepassle/astro-firebase","last_synced_at":"2025-07-31T09:39:17.144Z","repository":{"id":57684971,"uuid":"486507255","full_name":"thepassle/astro-firebase","owner":"thepassle","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-05T13:10:13.000Z","size":141,"stargazers_count":16,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T14:18:32.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://astro-firebase.web.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thepassle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-28T08:24:21.000Z","updated_at":"2025-02-28T12:45:48.000Z","dependencies_parsed_at":"2022-09-17T05:40:20.213Z","dependency_job_id":null,"html_url":"https://github.com/thepassle/astro-firebase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thepassle/astro-firebase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fastro-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fastro-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fastro-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fastro-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thepassle","download_url":"https://codeload.github.com/thepassle/astro-firebase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepassle%2Fastro-firebase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268017357,"owners_count":24181669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:00:32.221Z","updated_at":"2025-07-31T09:39:17.108Z","avatar_url":"https://github.com/thepassle.png","language":"JavaScript","readme":"# astro-firebase\n\n\u003e [[demo]](https://astro-firebase.web.app/), [[source]](https://github.com/thepassle/astro-firebase-demo)\n\nDeploy your server-side rendered (SSR) Astro app to [Firebase](https://firebase.google.com/).\n\nUse this adapter in your Astro configuration file, alongside a valid deployment URL:\n\n```js\nimport { defineConfig } from 'astro/config';\nimport firebase from 'astro-firebase';\n\nexport default defineConfig({\n  adapter: firebase(),\n});\n```\n\nAfter you build your site the `functions/` folder will contain your [Firebase Function](https://firebase.google.com/docs/functions) that runs Astro.\n\nNow you can deploy!\n\n```shell\nfirebase deploy\n```\n\n## Configuration\n\n### packageJson\n\nFirebase Functions requires your `functions/` folder to contain a `package.json`. We create a default `package.json` based on the `package.json` in your root. If you want to override some options, like for example the node version that Firebase should use, you can configure the `packageJson` property.\n\n```js\nimport { defineConfig } from 'astro/config';\nimport firebase from 'astro-firebase';\n\nexport default defineConfig({\n  adapter: firebase({\n    packageJson: {\n      engines: {\n        node: '18'\n      }\n    }\n  })\n});\n```\n\n## FAQ\n\n### 403 `Error: Forbidden Your client does not have permission to get URL / from this server`\n\nIf you're getting a 403 after deploying your project, it could be the case that you have to change the permissions of your Firebase Function. You can do this by following these steps:\n\n- Go to your [Firebase Console](https://console.firebase.google.com/)\n  - Select your firebase project\n  - Select `Functions` in the menu on the left\n  - Hover over your `handler` function in the Functions list in the `Dashboard`, a three-dotted menu button should appear, click it\n  - Click `Detailed usage stats`, this will take you to Google Cloud Platform\n    - Click the `permissions` tab\n    - Click `+ ADD`\n    - in the `New principals` field, enter: `\"allUsers\"`\n    - in the `Select a role` menu, enter: `Cloud Functions` -\u003e `Cloud Functions Invoker`\n    - ✅ Done \n\nYou should now be able to view your app.","funding_links":[],"categories":["Astro Integrations"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepassle%2Fastro-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepassle%2Fastro-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepassle%2Fastro-firebase/lists"}