Sitesfare
FeaturesHow it worksPricingGuidesAI editorsFAQ
FeaturesHow it worksPricingGuidesAI editorsFAQ

Guides

Bring your own code

Host your own website — hand-written, AI-built or a framework build (Vite, React, Next, Astro, three.js) — from a .zip or a public GitHub repo. Preview it first; it goes live when you pay. A real 3D site, step by step.

8 min read · updated 23 October 2026

Already have a website — hand-written HTML, a site you built with an AI editor, or one made with React, Vue, Vite, Astro, Hugo or three.js? Host it on Sitesfare instead of using a template. You upload it, check it on a private preview, and it goes live at yourname.sitesfare.app the moment its plan is paid.

The whole journey: choose a category, bring your own code, upload, check the preview, pay, live

This guide follows one real site all the way: Bruno Simon's 3D portfolio (three.js + Vite, MIT licence), about 300 files and 22 MB including 92 3D models. Everything below was done on sitesfare.com with that site.

In short: build your site on your computer → zip the folder the build makes → Dashboard → New site → category → Bring your own code → upload → check the preview → Pay and go live.

For every limit, file type and error message, see the own-code hosting reference.

Before you start

  • A ready-to-serve website — a folder with index.html at the top and the CSS, JavaScript, images, fonts and media it uses. Sitesfare serves files; it does not run a server or a build for you.
  • Rights to publish it — your own work, or code whose licence allows it (folio-2019 is MIT). Our terms of service apply to everything hosted here.
  • A Sitesfare account. You do not need to pay before uploading — you pay after you have seen it working.

Step 1 — Build your site (framework projects only)

Plain HTML sites skip this step: your folder is already the website.

If your project has a package.json, it needs building first. Run its build on your computer and upload the folder the build produces, not the project:

You useBuild commandUpload this folder
Vite (React, Vue, Svelte, three.js…)npm run builddist
Create React Appnpm run buildbuild
Next.jsset output: 'export' in next.config, then npm run buildout
Astronpm run builddist
SvelteKitadapter-static, then npm run buildbuild
Angularng builddist/<project>/browser
Gatsbygatsby buildpublic
Hugohugopublic
Jekyllbundle exec jekyll build_site
Eleventynpx @11ty/eleventy_site

For folio-2019 that was:

Copy this
git clone https://github.com/brunosimon/folio-2019.git
cd folio-2019
npm install
npm run build        # → dist/ : 294 files, 21.8 MB

Open dist/index.html locally (or run npx serve dist) and make sure the site works before you upload it.

Paths: your site is served from the top of its address (https://yourname.sitesfare.app/), so links like /assets/app.js work as they are. If your build tool has a "base" or "public path" setting, leave it at /.

Step 2 — Create the site

  1. Dashboard → New site.
  2. Choose the category of the site. The category decides which plan hosts it — a design or creative portfolio is Creative & Design, a developer portfolio Developer, a company site Business Website, and so on.

Step 1 of New site: choose what you are building

  1. Choose Bring your own code instead of a template.

Use a template, or bring your own code

  1. Choose your address. It is permanent, so pick carefully — letters only (a–z). Press Create & Upload Code.

Choose your address, then Create & Upload Code

You land on the site's Code page. It tells you which plan the site goes live on and what that costs.

The Code page before anything is uploaded

Step 3 — Upload

A .zip file (most people)

Zip the built folder (for folio-2019, dist):

  • Mac: right-click the folder → Compress.
  • Windows: right-click the folder → Send to → Compressed (zipped) folder.
  • Terminal: cd dist && zip -r ../site.zip .

Zipping the folder itself or just its contents both work — if everything is inside one folder, Sitesfare looks inside it.

On the Code page, drop the .zip on the box (or click to choose it) and press Upload and deploy (preview).

The .zip chosen, ready to deploy

A real site takes a minute or so — every file is checked, stored and set up on your preview. Keep the page open until it finishes.

Or a public GitHub repository

Choose Import from GitHub, paste the repository address, and optionally a branch and a folder (dist, build, public, docs…). After that, Sync from GitHub now publishes the latest commit whenever you like.

GitHub import takes the files as they are in the repository — nothing is built. So the repository (or the branch/folder you choose) must contain the built site: for example a gh-pages branch, a committed docs folder, or a plain HTML project. Importing a project's source is refused, and Sitesfare tells you which files gave it away:

Importing folio-2019's source repository is refused: it needs building first

Private repositories are not supported: make it public, or upload a .zip.

Step 4 — Check your private preview

Until the plan is paid, an upload is deployed but not live:

  • it is checked, stored, and shown on a private preview address for 7 days (the link is on the Code page), with a small "Preview — not live yet" bar and hidden from search engines;
  • your real address shows "coming soon".

Until it is paid, your address shows coming soon

Deployed, not live yet — with the preview link and Pay and go live

folio-2019 on its private preview

Click around the preview the way a visitor would. Under Deployed version you can open the list of files that were published — and any that were left out. Files like README.md, LICENSE or hidden files are always left out (they are not part of a website). If something your site needs was left out, you will see a yellow warning naming the file types.

Step 5 — Pay and go live

Press Pay and go live, review the order (you can add extras such as removing the Sitesfare credit or a custom domain), and pay.

Review the order and pay

The moment the payment is confirmed, the preview version goes live at your address by itself and you get an email. Nothing to re-upload.

folio-2019 live at its own address

Already have the plan with a free website place? Then your upload goes live straight away — there is no preview step.

Updating your site

The Code page of a live site: the live version, and Publish a new version

Upload a new .zip (or Sync from GitHub now) whenever you like. Each upload replaces the site in one go: visitors never see a half-updated site, and the new version is served within about 15 seconds.

  • Each plan allows a number of deploys a day (Developer 5, Creative & Design 20, Business Website 30…). The count resets at midnight UTC.
  • Your visitors' browsers may keep a file for up to 5 minutes. Files whose names carry a content hash — index-Coi9Kw88.js, what Vite, webpack and most build tools produce — are cached for good, because a changed file always gets a new name. If you hand-name files (style.css), a visitor who loaded the old version minutes ago may need to refresh.

What Sitesfare adds to every page

Like every Sitesfare site, your own-code pages get the correct address for search engines (and your custom domain once connected), privacy-friendly analytics, Google Search Console verification, and a robots.txt and sitemap.xml if you did not include your own. A small Made with Sitesfare credit appears unless you add Remove Sitesfare branding.

Your plan covers your own-code site exactly like a template site: storage, monthly bandwidth, deploys a day, mailboxes, custom domain, analytics, renewals, and the 60-day rule if a renewal is missed. Traffic is measured every day; you are emailed at 80% and 100% of your monthly bandwidth, and your site is never taken down for traffic.

When something goes wrong

You seeWhat to do
index.html was not found at the top of the siteUpload the built folder, or zip the folder's contents. For GitHub, set the folder (e.g. dist).
This is not a ready-to-serve static website (lists package.json, vite.config.js…)You uploaded the project, not its build. Build it (Step 1) and upload dist/build/out.
…larger than N MB / A site can be up to N MB on its planCompress big images and video, remove source maps (*.map), put large media in your media library — or choose a bigger plan (up to 200 MB on Photography).
Your … plan allows N deploys todayWait until midnight UTC, or upgrade.
The upload took too long or the connection droppedTry again on a steadier connection; a smaller .zip (no source maps) uploads faster.
The preview loads but parts are missingOpen files not published on the Code page — a yellow warning lists file types Sitesfare does not serve. Tell us which one you need.
Old version still showing after an updateWait 15 seconds and refresh. Hand-named files can stay in a visitor's browser for up to 5 minutes.

More answers, and every message in full: own-code hosting reference. Built the site with an AI editor? It can do all of this for you — see Host a site you vibe-coded with an AI editor.

Connect your own domain to your Sitesfare websiteAdding the DNS records at your registrarEmail on your own domain (hello@yourname.com)Domain and email troubleshootingOwn-code hosting referenceBilling, add-ons, renewals — and what happens if you stop paying

Next: Own-code hosting reference →

Sitesfare

Build and publish a website with templates and a no-code editor.

support@sitesfare.com

Build a website

Wedding websiteTelugu wedding websiteDeveloper portfolioPhotography portfolioBusiness websiteHousing society portalAll website types

Product

FeaturesHost your appHost vibe-coded appsProfessional emailSEO & AEOTemplatesGuidesAI editorsGet StartedSign InDashboard

Legal

Terms of ServicePrivacy PolicyRefunds & CancellationContact UsReport a siteTrust & safety
© 2026 Sitesfare. All rights reserved.LinkedIn ↗Built on the edge · Powered by Cloudflare