Skip to content

Deploy your Astro Site to Azion

How to deploy your Astro site to the web using Azion.

You can deploy your Astro project on Azion, a platform for frontend developers to collaborate and deploy static (JAMstack) and SSR websites.

To get started, you will need:

  • An Azion account. If you don’t have one, you can sign up for a free account.
  • Your app code stored in a GitHub repository.
  • Azion CLI installed for faster project setup and deployment.

How to Deploy through Azion Console Dashboard

Section titled “How to Deploy through Azion Console Dashboard”

To start building, follow these steps:

How to Deploy a Static Site Using the Azion CLI

Section titled “How to Deploy a Static Site Using the Azion CLI”

This guide provides an overview of deploying static applications.

Enabling Local Development Using Azion CLI

Section titled “Enabling Local Development Using Azion CLI”

For the preview to work, you must execute the following command:

Terminal window
azion dev

Once you’ve initialized the local development server, the application goes through the build process.

Terminal window
Building your Edge Application. This process may take a few minutes
Running build step command:
...

Then, when the build is complete, the access to the application is prompted:

Terminal window
[Azion Bundler] [Server] › ✔ success Function running on port http://localhost:3000

A project using an NPM package fails to build with an error message such as [Error] Could not resolve "XXXX. The package "XXXX" wasn't found on the file system but is built into node.:

This means that a package or import you are using is not compatible with Azion’s runtime APIs.

If you are directly importing a Node.js runtime API, please refer to the Azion Node.js compatibility for further steps on how to resolve this.

If you are importing a package that imports a Node.js runtime API, check with the author of the package to see if they support the node:* import syntax. If they do not, you may need to find an alternative package.