Tilda supports deploying any static website, whether it's built with a static site generator or just plain HTML, CSS, and JavaScript files.
You'll need to create a "Project" and a "Site" in Tilda dashboard before you can deploy your static website. Use "slugs" for those values in the deployment command as shown in the Deployment section below.
Please follow the getting started with Tilda guide to understand how to begin. If you haven't installed Tilda CLI yet, follow the CLI installation guide.
To deploy a static website, you'll need to specify the directory containing your static files using the --rootStaticDir
option. This directory should contain your built static files (HTML, CSS, JavaScript, images, etc.).
./
or ./public
./dist/client
./public
./public
_site
_site
or ./dist
Use the following command to build your static website for deployment:
tilda build static --rootStaticDir ./dist
Replace ./dist
with the directory containing your static files.
After building your static website, deploy it to Tilda using:
tilda deploy --project myproject --site mysite
Replace myproject
and mysite
with your actual project and site slugs from the Tilda dashboard.