Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.23 KB

README.MD

File metadata and controls

51 lines (37 loc) · 1.23 KB

hexo-deployer-firebase

Google Firebase Deployer for Hexo.

简体中文版教程:https://blog.pai233.top/20220208/how-to-deploy-your-hexo-blog-on-firebase/

Usage

Installation

npm i hexo-deployer-firebase --save

Initialize Your Project

Go to Firebase Console and add a project.

Then, install Firebase CLI by your favorite ways.

Finally, Login to your Firebase CLI. Run this command in your terminal.

firebase login

If you don't have the access to localhost, run this command below:

firebase login --no-localhost

Now you can configure this plugin!

Options

You can configure this plugin in Hexo's _config.yml:

deploy:
    - type: firebase
      id: <Your project's unique identifier>

The identifier usually at your project's name below. For an example:

pai233-blog is this project's identifier.

Deploy

Just run hexo d in your terminal.

If you are using this plugin in mainland China, you may need to set a proxy server.

LICENSE

MIT