Tilda supports both static and server-side rendering (SSR) builds of Astro websites and applications.
You'll need to create a "Project" and a "Site" in Tilda dashboard before you can deploy your Astro project. 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.
For SSR deployments, your Astro project must use the Node.js adapter. Follow the official Astro Node.js adapter guide to add the adapter to your project.
Once the adapter is configured, build your SSR Astro app using:
tilda build astro
For static Astro websites where output: "static"
is set in astro.config.mjs
, use the following build command:
tilda build static --rootStaticDir ./dist/client
After building your Astro project 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.