Skip to content

Learn how to get started with seo-in-astro.

You will need to have an Astro website set up. If you don’t have one yet, you can follow the “Install Astro” guide in the Astro docs to create one.

Additionally, your Astro website must meet the following requirements:

  • Astro 4.14.0 or higher
  1. Install it by running the following command in your terminal:

    Terminal window
    npm install seo-in-astro
  2. Configure the integration in your Astro configuration in the astro.config.mjs file.

    astro.config.mjs
    import { defineConfig } from 'astro/config'
    import { seoInAstro } from "seo-in-astro";
    export default defineConfig({
    integrations: [
    seoInAstro({
    baseUrl: "https://example.com",
    siteName: "Example",
    }),
    ],
    });
  3. You’re all set! Start using the integration in your Astro project.