Flat / Static website hosting

Publish your finished static website.

Upload the HTML, CSS, and JavaScript from your site build or export. Flat hosts the files, so you can share your site without setting up a server or connecting a Git repository.

Publish your website

Upload here or publish a site folder with the CLI.

Checking your upload limits... · Public · Limits

Drop your finished website files

or choose files from your device.

Select website files

Host your exported site or landing page

Upload your build or export

Build or export in your editor or framework, then upload the output. Include index.html at the top level, along with the images, styles, and scripts the site uses.

Share an interactive page

Your client-side JavaScript runs in the browser, so visitors can use your charts, filters, and demos. Connect forms or logins to your preferred backend service.

Publish a site folder with the CLI

Flat keeps your site's folder structure and returns a public link.

  1. Publish your site

    Replace ./dist with your exported site folder. Send the returned link to a client or add it to your portfolio.

    npx -y @getflat/cli deploy ./dist

Update your website at the same address

Use a free named address

Publish revised files with the same named onflat.page address through the CLI. Visitors use the link you already shared.

Set up a reusable website address ↗

Connect your own domain

Put your site on your business domain or a client-preview subdomain.

Connect a custom domain ↗

Website hosting questions

How do I publish a React or Next.js site?

Create a static build or export, then publish the output folder. See the CLI instructions for setup.

Can I upload a single HTML file?

Yes. Name it index.html to open the website at the main link. The HTML hosting guide covers supporting files.

Publish your website.

Upload a standalone page here. For a site with folders, use the CLI command above.

Publish your website