Skip to content

Deploy your Astro Site to Clever Cloud

How to deploy your Astro site to the web on Clever Cloud.

Clever Cloud is a European cloud platform that provides automated, scalable services.

You can deploy both fully static and on-demand rendered Astro projects on Clever Cloud. Regardless of your output mode (pre-rendered or on-demand), you can choose to deploy as a static application which runs using a post-build hook, or as a Node.js application, which requires some manual configuration in your package.json.

If you’re running an on-demand Node.js application, update your start script to run the Node server. Applications on Clever Cloud listen on port 8080.

package.json
"scripts": {
"start": "node ./dist/server/entry.mjs --host 0.0.0.0 --port 8080",
}

To deploy your Astro project to Clever Cloud, you will need to create a new application. The application wizard will walk you through the necessary configuration steps.