Skip to Content
Framework GuidesStatic Sites

Deploy Static Sites

Deploy HTML, CSS, and JavaScript sites (React SPA, Vue SPA, plain HTML, etc.).

1. Initialize

cd my-static-site espacetech init

Plain HTML

espacetech.json
{ "name": "my-site", "framework": "static", "build_command": "", "start_command": "", "port": 80 }

React (Create React App / Vite)

espacetech.json
{ "name": "my-react-app", "framework": "static", "build_command": "npm run build", "start_command": "", "output_dir": "dist", "port": 80 }

Vue (Vite)

espacetech.json
{ "name": "my-vue-app", "framework": "static", "build_command": "npm run build", "start_command": "", "output_dir": "dist", "port": 80 }

2. Deploy

espacetech deploy

Static sites are served via nginx with automatic gzip compression, caching headers, and SPA fallback routing (all routes serve index.html).

Custom Domain

espacetech domains add my-site.com