Skip to content

Firebase

How to deploy astro js in to firebase

Firebase Sign Up

Firebase astro js themes template

For first you need create firebase account.

Install Firebase CLI

Next You need to install firebase cli with terminal , run command npm install -g firebase-tools

After that you can login on firebase by using CLI , run this command firebase login

Next create a folder for firebase project, and then you can run firebase init

Now you can move astro js project in to your firebase project folder.

Next back in to your firebase dashboard, and create new project, and name it your project.

Build production

Back to your astro project, now we need to build production , so you can run npm run build

Firebase Push

After you have build production mode, now you can use dist folder for push on firebase host, For first you need to access your dist production astro project with terminal , and you can run firebase add && firebase deploy

For detail information you can visit firebase doc here →