Skip to content

Getting Started

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. Download the integration .tgz file from Patreon if you purchased SEO in Astro, or from this link if you purchased SEO Bundle.

  2. Place the .tgz file in the root of your project and add it to your package.json:

    package.json
    {
    "dependencies": {
    "@dlcastillop/seo-in-astro": "file:./dlcastillop-seo-in-astro-1.0.0-beta.1.tgz"
    }
    }

    Then install the dependencies:

    Terminal window
    npm install
  3. Configure the plugin in your Starlight configuration in the astro.config.mjs file.

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