---
title: "Deploy html on Replit"
section: posts
description: "Replit is great but lacks HTML deployment."
tags: ["web-development", "deployment", "replit", "surge", "html", "static-site-hosting"]
created: 2023-09-07T13:15:00Z
updated: 2025-05-24T16:58:00Z
cid: bafkreigqq72np7u6bzbibxmayte5tzshwu7xvspmgywlmilrbrcbntk2wi
html: https://iammatthias.com/posts/1691436904927-deploy-html-on-replit
---

# Deploy html on Replit

[Replit](https://replit.com/) is an amazing tool. Big fan. But currently, you can't deploy a simple HTML project, which is just baffling. Let me throw my `index.html` into the void!

There's an easy solution, though. Use Replit's `Shell` tool and run `npx surge`. You'll need to select a node version, and then set up an account with [Surge.sh](https://surge.sh) which will let you manage your deploys. Surge will assign you a random domain, but you can change it to whatever you want.

You can also run `echo your-domain.surge.sh > CNAME` to create a file at your project root that will tell Surge what domain to deploy under.

---

## Related

- [Pure Internet: NFC](https://iammatthias.com/posts/1731984900000-pure-internet-nfc.md): HTML, CSS & minimal JS combined with NFC tech to create serverless web experiences.
- [Mint thyself](https://iammatthias.com/posts/1685948400001-mint-thyself.md): A Zora HTML edition that embeds its own mint interface and can be minted from itself.
- [Post-UI](https://iammatthias.com/posts/1784126858578-post-ui.md): Do we still need to ship a frontend?
- [Single-origin deployment with bhvr](https://iammatthias.com/posts/1747182886660-single-origin-deployment-with-bhvr.md): Fried my Pi using a 10V solar panel without a buck converter.
- [Pure Internet: no-html](https://iammatthias.com/posts/1740682611811-pure-internet-no-html.md): A plain Markdown file hosted on Bluesky's blob storage and rendered directly by the browser.
