Skip to content

Netlify

The easiest way to deploy your site is to use Netlify, as the themes are already set up for Netlify deployment.

  • The @astrojs/netlify adapter is already installed
  • The astro.config.mjs file is already set up for Netlify deployment

Config File

This is what the astro.config.mjs file looks like for Netlify deployment:

import netlify from "@astrojs/netlify";
// https://astro.build/config
export default defineConfig({
site: "https://yoursite.com",
output: "hybrid",
adapter: netlify({
imageCDN: false,
}),
// other config options
});

Deploying

  1. Push your code to GitHub
  2. Create a Netlify account if you don’t already have one
  3. Follow the official Netlify documentation to deploy your site

Additional information