Firebase Hosting is a service provided by Google’s Firebase app development platform, which can be used to deploy an Astro site.
Make sure you have firebase-tools installed.
Create firebase.json and .firebaserc at the root of your project with the following content:
firebase.json:
{
"hosting": {
"public": "dist",
"ignore": []
}
} .firebaserc:
{
"projects": {
"default": "<YOUR_FIREBASE_ID>"
}
} After running npm run build, deploy using the command firebase deploy.
© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/guides/deploy/google-firebase/