Skip to main content

Getting Started with Static HTML Hosting

Deploy your static HTML websites on ShardCloud with minimal configuration and maximum performance. Under the hood, we run a production-configured NGINX server to serve all your static files.
ShardCloud supports static HTML websites with fast CDN delivery and automatic optimization.

Prerequisites

Before uploading your static website, ensure you have the following project structure ready.

Required Files

Essential files for deployment

Required Files

Your static HTML website must include these two essential files:

1. Entry Point File

  • File: index.html or your main HTML file
  • Purpose: Main website entry point
  • Requirements: Valid HTML document that serves as your homepage

2. ShardCloud Configuration

  • File: .shardcloud
  • Purpose: Platform-specific deployment settings
  • Requirements: Plain text configuration file in root directory
Both files are mandatory. Missing any of these files will prevent successful deployment.ity!

ShardCloud Configuration

The .shardcloud file configures your website deployment settings.

Configuration Example

DISPLAY_NAME=mystaticwebsite
DESCRIPTION=a simple static html website
MAIN=index.html
MEMORY=128
VERSION=LATEST
SUBDOMAIN=static
Static websites require minimal memory since they’re served directly without server-side processing.

Deployment Process

1

Prepare HTML Files

Ensure your index.html and supporting files are ready
2

Configure Platform

Create .shardcloud file with deployment settings
3

Create Archive

Zip or RAR your project
4

Upload via Dashboard

Use ShardCloud dashboard to upload your archive
5

Deploy & Serve

Website immediately becomes available via CDN

Common Configuration Examples

Personal Portfolio

DISPLAY_NAME=portfolio-site
DESCRIPTION=Personal portfolio website
MAIN=index.html
MEMORY=128
VERSION=LATEST
SUBDOMAIN=portfolio