Overview
CloudBase Static Website Hosting can provide fast and secure hosting services for your web applications and static resources. With just one command, you can quickly deploy static resources and use CDN (Content Delivery Network) to accelerate resource access.
Main Features
Application Online Deployment
CloudBase Static Website Hosting supports multiple deployment methods to meet different deployment needs:
Four Deployment Methods:
- Upload Code Package/Folder: Quickly upload local project files, supporting ZIP format
- Create from Official Templates: Quickly create new projects based on official React, Vue, Next.js, and Nuxt templates
- Git Repository Deployment: Supports Git personal repositories and third-party public repositories
- CLI Command Deployment: Use CloudBase CLI to deploy in one command locally or in CI/CD pipelines
Supported Build Configurations:
- Automatic detection for 10 mainstream frontend frameworks (React, Vue.js, Angular, Next.js, Nuxt.js, VitePress, Astro, Hugo, Hexo, Other)
- Customize install commands and build commands
- Select Node.js version (16.x, 18.x, 20.x, 22.x, 24.x)
- Configure environment variables
- Set output directory
- Enable build caching
For details, please refer to Online Deployment Guide.
HTTPS
CloudBase Static Website Hosting has built-in HTTP and HTTPS, which can be used without additional configuration.
Custom Domain
CloudBase Static Website Hosting supports custom domains. Users can access static resources using your private domain. For details, please refer to Custom Domain.
Fast Distribution
Static resources will be cached on CDN edge servers distributed around the world. No matter where your users are located, content can be loaded quickly.
Command Line Deployment
Use CloudBase CLI to deploy in one command locally or in CI/CD pipelines. The CLI automatically completes the full workflow: install dependencies → build → upload artifacts → bind routes:
# Install globally and log in
npm i -g @cloudbase/cli
tcb login
# Deploy in one command from project root
tcb app deploy --framework vite -e my-env-id
Supports multiple framework types including React / Vue / Vite / Next.js / Nuxt / Angular / pure static. For details, see CLI Installation and Application Deployment Commands.
Use Cases
Static Website Hosting is suitable for the following application scenarios:
- Single Page Applications (SPA): Applications built with frontend frameworks like React, Vue, Angular, etc.
- Static Websites: Personal blogs, corporate websites, product showcase pages
- Documentation Sites: Documentation generated by VitePress, Docusaurus, Hexo, etc.
- Static Resources: Hosting of resource files such as images, videos, fonts, etc.
Quick Start
- Quick Start - Get started with static hosting in 5 minutes
- Online Deployment Guide - Learn about detailed deployment methods and configurations
- CLI Command Deployment - Deploy applications in one command via CLI
- Custom Domain - Bind your exclusive domain