{"id":20650973,"url":"https://github.com/svelte-add/firebase-hosting","last_synced_at":"2025-05-10T10:30:47.696Z","repository":{"id":111304810,"uuid":"316147972","full_name":"svelte-add/firebase-hosting","owner":"svelte-add","description":"⚠️ MOVED: https://github.com/svelte-add/svelte-add/ ⚠️ A command to add hosting on Firebase to your Svelte project","archived":true,"fork":false,"pushed_at":"2021-03-06T06:12:25.000Z","size":58,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T17:33:55.425Z","etag":null,"topics":["deployment","firebase","firebase-hosting","svelte","svelte-adder","svelte-kit","sveltekit"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svelte-add.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-26T06:58:22.000Z","updated_at":"2024-05-05T07:53:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"982037ad-8127-40be-a470-086a883831e5","html_url":"https://github.com/svelte-add/firebase-hosting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Ffirebase-hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Ffirebase-hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Ffirebase-hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Ffirebase-hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svelte-add","download_url":"https://codeload.github.com/svelte-add/firebase-hosting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253400934,"owners_count":21902576,"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","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":["deployment","firebase","firebase-hosting","svelte","svelte-adder","svelte-kit","sveltekit"],"created_at":"2024-11-16T17:24:47.477Z","updated_at":"2025-05-10T10:30:47.689Z","avatar_url":"https://github.com/svelte-add.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🔥 Add Firebase Hosting to Svelte\u003c/h1\u003e\n\n## ❓ What is this?\nThis is an **experimental** command to run to add hosting on Firebase to your SvelteKit project.\n\n## 🛠 Usage\nYou must start with a fresh copy of the official SvelteKit template, which is currently created by running this command.\n```sh\nnpm init svelte@next\n# By the way, please listen to its warnings that SvelteKit is an alpha project\n# https://svelte.dev/blog/whats-the-deal-with-sveltekit#When_can_I_start_using_it\n```\n\nOnce that is set up, run this command in your project directory to set up hosting on Firebase:\n```sh\nnpx apply svelte-add/firebase-hosting # --no-ssh\n```\n\nAfter the preset runs,\n* [You *cannot* use server-side rendering](https://github.com/svelte-add/firebase-hosting/issues/1). Your site must be static. This means that, among other things, [`svelte-add/graphql`](https://github.com/svelte-add/graphql) is currently not suitable to be hosted on Firebase.\n\n* Consider setting up GitHub Actions for automatic building and deployment to Firebase.\n  \n  Start by generating [a CI login token from Firebase](https://firebase.google.com/docs/cli#cli-ci-systems):\n  ```sh\n  npm run firebase login:ci\n  ```\n  \n  Then, go to your repository's [Settings \u003e Secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository). Copy the result of the command above and [save it as a Secret](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `FIREBASE_TOKEN`.\n\n  You can test if it's working by making a commit to `main` or `master` and checking the Actions tab of your repository to see if your project successfully builds and deploys to Firebase.\n\n* You can create a custom 404 page at `src/routes/404.svelte`.\n\n* You can use the `deploy` package script to manually deploy the site after a `build`.\n\n* You can apply *another* [Svelte Adder](https://github.com/svelte-add/svelte-adders) to your project for more functionality. \n\n## 😵 Help! I have a question\n[Create an issue](https://github.com/svelte-add/firebase-hosting/issues/new) and I'll try to help.\n\n## 😡 Fix! There is something that needs improvement\n[Create an issue](https://github.com/svelte-add/firebase-hosting/issues/new) or [pull request](https://github.com/svelte-add/firebase-hosting/pulls) and I'll try to fix.\n\nThese are new tools, so there are likely to be problems in this project. Thank you for bringing them to my attention or fixing them for me.\n\n## 📄 License\nMIT\n\n---\n\n*Repository preview image generated with [GitHub Social Preview](https://social-preview.pqt.dev/)*\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelte-add%2Ffirebase-hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvelte-add%2Ffirebase-hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelte-add%2Ffirebase-hosting/lists"}