logo
4
1
WeChat Login

Hexo + React + COS

pipeline-as-code git-clone-yyds status-push

In this example, you'll use Cloud Native Build (CNB) to package the "hexo-cos-demo" project, build it, and upload the artifacts to COS (Tencent Cloud Object Storage).

Prerequisites

  1. Use Cloud Native Build (CNB) to build your project
  2. Environment variables and usage: Environment Variables
  3. Declarative build cache
  4. Plugins and usage: Plugin Market
  5. Use coscli plugin: With the coscli plugin, users can perform batch operations like upload, download, and delete on objects through simple command-line instructions
  6. For Hexo usage, please refer to Basic Operations

Configuration Secrets

# hexo_cos_secret.yml COS_SECRET_ID: xxx COS_SECRET_KEY: xxx COS_BUCKET: xxx COS_REGION: xxx

Getting Started

cnb-init-from https://cnb.cool/examples/ecosystem/hexo-cos-demo.git

About

hexo 构建并将静态资源上传到腾讯云 COS

example